(2.0ms) CREATE 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)   (0.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (0.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (0.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (0.8ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.7ms) CREATE 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)   (0.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.7ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (0.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (0.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.8ms) 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)  (0.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (2.0ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.8ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_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"], ["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) 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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) 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) Commontator::Comment Load (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) 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"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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 26ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.3ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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:19 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.7ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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.8ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (8.0ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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

Anonymous commented on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) 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"]] DummyModel Load (0.0ms) 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.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) 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"]] DummyModel Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) 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"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) 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"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (1.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.6ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 4]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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:55:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) 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", 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]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (0.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.1ms) 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"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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:19 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.5ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:55:19 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.3ms) 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]]  (0.8ms) commit transaction  (1.4ms) CREATE 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)   (0.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (0.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (1.1ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.7ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.7ms) CREATE 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)   (0.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.6ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (0.6ms) 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)  (0.6ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (0.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.6ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.7ms) 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)  (0.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.9ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (1.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_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"], ["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) 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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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)  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) 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) Commontator::Comment Load (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) 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"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) 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"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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 26ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.5ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.8ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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.8ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (7.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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: 7bit

Anonymous commented on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.0ms) 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.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) 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"]] DummyModel Load (0.0ms) 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)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) 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"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) 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"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 3], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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:55:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 5]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) 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" = 7) LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 7]] SQL (0.2ms) 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:55:29 UTC +00:00], ["closer_id", 12], ["closer_type", "DummyUser"], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]  (0.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Load (0.1ms) 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"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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:29 UTC +00:00], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["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]]  (0.6ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:55:29 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction  (1.8ms) CREATE 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)   (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (0.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (0.8ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.7ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.8ms) CREATE 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)   (0.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (0.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (0.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.7ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.7ms) 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)  (0.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (2.1ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.5ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_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"], ["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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)  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.2ms) 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)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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) Commontator::Comment Load (0.0ms) 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"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) 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"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) 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"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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 24ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) 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)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.9ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (1.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.9ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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.8ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) 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)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (9.7ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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: 7bit

Anonymous commented on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) 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"]] DummyModel Load (0.0ms) 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.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) 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"]] DummyModel Load (0.0ms) 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)  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) 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"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) 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) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.1ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.1ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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", 11], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]]  (0.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 7]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 7]] SQL (0.2ms) 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]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]  (0.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 7]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Load (0.1ms) 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"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) 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" = 9) LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) 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" = 9) LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 9]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 15], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 16], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 19 Mar 2014 16:56:36 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 11]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 16]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Wed, 19 Mar 2014 16:56:37 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Wed, 19 Mar 2014 16:56:37 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.1ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (1.3ms) CREATE 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)   (0.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (0.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (0.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (0.8ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.7ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.8ms) CREATE 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)   (0.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (0.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (1.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.7ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.9ms) 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)  (1.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('2') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) CREATE 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)   (1.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (0.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (0.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (0.8ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.7ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.7ms) CREATE 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)   (0.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (0.7ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (0.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.9ms) 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)  (0.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (6.1ms) 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]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]] SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_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"], ["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"} Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.3ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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) Commontator::Comment Load (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.3ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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", 2], ["updated_at", Wed, 16 Apr 2014 16:55:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 16ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.3ms) 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"]]  (0.2ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (1.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", 2], ["voter_type", "DummyUser"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.3ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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 15ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.3ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.2ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 1.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (17.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.3ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.5ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 1.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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: 7bit

Anonymous commented on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.5ms) rollback transaction  (0.3ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) 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"]] DummyModel Load (0.1ms) 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.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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 6ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) 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]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 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 SQL (0.3ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 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 SQL (0.8ms) 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]]  (0.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.3ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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 16:55:15 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["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]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.4ms) 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", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 16:55:15 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 16:55:16 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (1.0ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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: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]]  (0.7ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.5ms) 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]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (0.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) 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", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (1.8ms) CREATE 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)   (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (0.8ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.8ms) CREATE 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)   (0.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (0.8ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (0.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.7ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.7ms) 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)  (0.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (6.2ms) 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]] DummyModel Load (0.3ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_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"], ["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"} Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.2ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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) Commontator::Comment Load (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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", 2], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 25ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 16 Apr 2014 17:15:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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: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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.8ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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: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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 1.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (15.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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: 7bit

Anonymous commented on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) 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"]] DummyModel Load (0.1ms) 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.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["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]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (0.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) 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"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["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]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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", 12], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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: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]]  (0.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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:15:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:15:36 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 16]]  (1.7ms) CREATE 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)   (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (0.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (0.8ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.7ms) CREATE 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)   (0.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (0.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (0.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.8ms) 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)  (0.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (6.4ms) 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]] DummyModel Load (0.8ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (1.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.4ms) 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 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_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"], ["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"} Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.2ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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) Commontator::Comment Load (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 25ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) 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"]] ActsAsVotable::Vote Load (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 18ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (1.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", 2], ["voter_type", "DummyUser"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 1.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (14.8ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 16 Apr 2014 17:16:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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: 7bit

Anonymous commented on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) 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"]] DummyModel Load (0.1ms) 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.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) 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"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) 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) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.7ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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: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]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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: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]]  (0.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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: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]]  (0.7ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.3ms) 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]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (0.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) 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", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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:16:46 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.3ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) 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 SQL (0.4ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["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]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) 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 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 17:16:46 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (1.6ms) CREATE 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)   (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (1.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (0.8ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.8ms) CREATE 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)   (0.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (0.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (0.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.8ms) 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)  (0.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (7.8ms) 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]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_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"], ["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.2ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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) Commontator::Comment Load (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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:35 UTC +00:00]]  (0.0ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 37ms (ActiveRecord: 0.7ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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", 2], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 63ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (1.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", 2], ["voter_type", "DummyUser"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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 15ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 1.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (19.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 16 Apr 2014 17:24:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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: 7bit

Anonymous commented on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (1.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.3ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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: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]]  (0.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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:24:36 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 8]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) 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" = 7) LIMIT 1 SQL (0.3ms) 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]]  (0.7ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 7]] SQL (0.4ms) 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, 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]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]  (0.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 7], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["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]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 12], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 17:24:36 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (1.3ms) CREATE 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)   (0.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (1.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (0.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (0.9ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.9ms) CREATE 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)   (1.0ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (0.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (1.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) 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)  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (10.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (6.4ms) 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]] DummyModel Load (0.3ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) 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]]  (6.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_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"], ["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (2.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 7ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (2.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (2.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (2.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.2ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (2.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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) Commontator::Comment Load (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (2.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (2.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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:19 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 35ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (2.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 25ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 61ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (1.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (2.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (2.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 1.0ms)  (1.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.2ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (15.9ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 16 Apr 2014 21:45:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (2.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (2.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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: 7bit

Anonymous commented on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (1.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (2.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (3.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (3.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (3.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (3.2ms) rollback transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (3.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (3.2ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]]  (3.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (5.8ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.1ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.0ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (3.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (5.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]]  (3.3ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.3ms) 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]]  (3.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (5.8ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 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 SQL (0.3ms) 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]]  (4.1ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 8]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (6.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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:45:20 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]]  (3.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]]  (3.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (5.9ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.8ms) 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", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]]  (3.2ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]]  (6.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]]  (5.8ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (5.8ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (5.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (3.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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: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]]  (2.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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: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]]  (2.5ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (3.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) 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 SQL (0.3ms) 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: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]]  (2.5ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.3ms) 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]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (3.3ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (3.3ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 15], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]]  (3.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.2ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 16], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 16 Apr 2014 21:45:20 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 15]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 16]]  (2.0ms) CREATE 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)   (1.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (1.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (0.8ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.7ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.8ms) CREATE 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)   (0.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (0.8ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (0.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.7ms) 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)  (0.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (6.0ms) 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]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_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"], ["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 6ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.7ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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) Commontator::Comment Load (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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:15 UTC +00:00]]  (0.0ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 36ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 60ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (1.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", 2], ["voter_type", "DummyUser"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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 15ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 1.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (12.3ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 16 Apr 2014 21:47:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.2ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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: 7bit

Anonymous commented on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (1.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 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 SQL (0.3ms) 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]]  (0.7ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["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]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) 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]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]]  (0.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 3], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.5ms) 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:47:16 UTC +00:00], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 5], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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" = 7) LIMIT 1 SQL (0.3ms) 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]]  (0.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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" = 7) LIMIT 1 SQL (0.3ms) 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]]  (0.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.9ms) commit transaction Commontator::Subscription Load (0.3ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.5ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.3ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]] SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 13]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 15], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 16], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 16 Apr 2014 21:47:16 UTC +00:00]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 15]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 16]]  (1.6ms) CREATE 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)   (0.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (13.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (0.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (0.9ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.8ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (6.0ms) CREATE 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)   (16.0ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.7ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (1.0ms) 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)  (0.7ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (0.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.8ms) 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)  (0.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (38.8ms) 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]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (3.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_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"], ["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 6ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (2.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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) Commontator::Comment Load (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (2.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (2.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (2.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (2.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 25ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (1.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (2.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (1.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", 2], ["voter_type", "DummyUser"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (1.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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 16ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (2.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (2.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (1.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.2ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (18.0ms)  (0.5ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Thu, 17 Apr 2014 14:31:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (2.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (2.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.3ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (2.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (2.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) 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: 7bit

Anonymous commented on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (1.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (2.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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 6ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (3.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (3.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (3.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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: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]]  (2.7ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) 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]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (3.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (3.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (6.1ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]]  (3.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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: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]]  (2.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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: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]]  (2.6ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (4.0ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (6.1ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 6]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (6.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (6.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (4.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.3ms) 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]]  (8.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (6.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (8.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (3.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.4ms) 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]]  (3.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.0ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 11]] SQL (0.2ms) 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]]  (6.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]]  (6.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.2ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]]  (6.0ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (3.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (6.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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 14:31:47 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 14:31:47 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.3ms) 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]]  (3.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (6.0ms) commit transaction Commontator::Subscription Load (0.1ms) 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", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.4ms) 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]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.2ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (6.1ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (1.8ms) CREATE 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)   (1.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (2.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (1.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (11.0ms) CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.7ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.8ms) CREATE 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)   (1.3ms) CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.9ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (6.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (6.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (7.4ms) 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)  (8.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (7.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (7.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (43.9ms) 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]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (3.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) 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]]  (6.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_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"], ["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (2.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 6ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 15:19:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (2.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (2.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (2.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) 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) Commontator::Comment Load (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (2.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) 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"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (2.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (2.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (2.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) 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) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (2.9ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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:03 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (2.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (1.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (1.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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 19ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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)  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (2.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (2.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 1.0ms)  (2.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (12.5ms)  (3.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Thu, 17 Apr 2014 15:19:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (2.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) 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: 7bit

Anonymous commented on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (1.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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 6ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "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)  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.9ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) 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 SQL (0.3ms) 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", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]]  (0.5ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.4ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.4ms) 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]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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", 10], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]]  (0.7ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.3ms) 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]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (0.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.4ms) 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]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.3ms) 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", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) 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 SQL (0.3ms) 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", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 11]] DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 13]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 14]] SQL (0.3ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Thu, 17 Apr 2014 15:19:04 UTC +00:00]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Subscription Load (0.1ms) 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"]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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" = 10) LIMIT 1 SQL (0.3ms) 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]]  (0.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 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 SQL (0.3ms) 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]]  (0.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.2ms) 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]]  (0.4ms) commit transaction  (1.0ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (0.1ms) 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'  (0.1ms)  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'   (0.8ms) CREATE INDEX "index_commontator_comments_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.8ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (0.9ms) CREATE 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)   (0.9ms) CREATE UNIQUE INDEX "index_commontator_subscriptions_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")  (0.1ms)  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'   (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (0.9ms) 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)   (0.8ms) CREATE UNIQUE INDEX "index_commontator_threads_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")  (0.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.8ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.8ms) 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)   (0.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (0.1ms)  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'   (0.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.454875"], ["updated_at", "2014-04-22 23:24:48.454875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.505856"], ["updated_at", "2014-04-22 23:24:48.505856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.507992"], ["updated_at", "2014-04-22 23:24:48.507992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.509714"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.509714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) 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"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) 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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.519210"], ["updated_at", "2014-04-22 23:24:48.519210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.529354"], ["updated_at", "2014-04-22 23:24:48.529354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.531576"], ["updated_at", "2014-04-22 23:24:48.531576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.533201"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.533201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.536409"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.536409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) 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 7ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Another thing"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.551419"], ["updated_at", "2014-04-22 23:24:48.551419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.553421"], ["updated_at", "2014-04-22 23:24:48.553421"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.555742"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.555742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) 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"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.568672"], ["updated_at", "2014-04-22 23:24:48.568672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.570878"], ["updated_at", "2014-04-22 23:24:48.570878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.573363"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.573363"]]  (0.0ms) 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"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.1ms) 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 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.579972"], ["updated_at", "2014-04-22 23:24:48.579972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.583557"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.583557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.588408"], ["updated_at", "2014-04-22 23:24:48.588408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.591911"], ["updated_at", "2014-04-22 23:24:48.591911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.594181"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.594181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) 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) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.1ms) 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.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.607594"], ["updated_at", "2014-04-22 23:24:48.607594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.609690"], ["updated_at", "2014-04-22 23:24:48.609690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.611304"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.611304"]]  (0.0ms) 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) Commontator::Comment Load (0.0ms) 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"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.616298"], ["updated_at", "2014-04-22 23:24:48.616298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.624598"], ["updated_at", "2014-04-22 23:24:48.624598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.626582"], ["updated_at", "2014-04-22 23:24:48.626582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.628050"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.628050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 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"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.645020"], ["updated_at", "2014-04-22 23:24:48.645020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.648614"], ["updated_at", "2014-04-22 23:24:48.648614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.650957"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.650957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.1ms) 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.657395"], ["editor_id", 1], ["editor_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:48.658823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) 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)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.664370"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.664370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", "2014-04-22 23:24:48.667482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.1ms) 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 4ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.676348"], ["updated_at", "2014-04-22 23:24:48.676348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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.683163"], ["editor_id", 1], ["editor_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:48.684109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", "2014-04-22 23:24:48.696131"], ["editor_id", 2], ["updated_at", "2014-04-22 23:24:48.697228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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.699583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.704967"], ["updated_at", "2014-04-22 23:24:48.704967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.706990"], ["updated_at", "2014-04-22 23:24:48.706990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.708497"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.708497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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.709242"], ["editor_id", 1], ["editor_type", "DummyUser"], ["updated_at", "2014-04-22 23:24:48.709980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) 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)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.725798"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.725798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) 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) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.734611"], ["updated_at", "2014-04-22 23:24:48.734611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.744996"], ["updated_at", "2014-04-22 23:24:48.744996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.746379"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.746379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", "2014-04-22 23:24:48.747019"], ["updated_at", "2014-04-22 23:24:48.747737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.0ms) 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.755085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.758646"], ["updated_at", "2014-04-22 23:24:48.758646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.778881"], ["updated_at", "2014-04-22 23:24:48.778881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.782547"], ["updated_at", "2014-04-22 23:24:48.782547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) 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)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) 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)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "updated_at" = ?, "vote_flag" = ? WHERE "votes"."id" = 1 [["updated_at", "2014-04-22 23:24:48.803844"], ["vote_flag", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = 1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "updated_at" = ?, "vote_flag" = ? WHERE "votes"."id" = 1 [["updated_at", "2014-04-22 23:24:48.809103"], ["vote_flag", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) 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)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.815566"], ["updated_at", "2014-04-22 23:24:48.815566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.832316"], ["updated_at", "2014-04-22 23:24:48.832316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.835687"], ["updated_at", "2014-04-22 23:24:48.835687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) 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)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "votes" SET "updated_at" = ?, "vote_flag" = ? WHERE "votes"."id" = 1 [["updated_at", "2014-04-22 23:24:48.852134"], ["vote_flag", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1  (0.2ms) 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"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "votes" SET "updated_at" = ?, "vote_flag" = ? WHERE "votes"."id" = 1 [["updated_at", "2014-04-22 23:24:48.858607"], ["vote_flag", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) 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)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.865517"], ["updated_at", "2014-04-22 23:24:48.865517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.885303"], ["updated_at", "2014-04-22 23:24:48.885303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.893769"], ["updated_at", "2014-04-22 23:24:48.893769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 1  (0.1ms) 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)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) 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"]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = 1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) 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"]] ActsAsVotable::Vote Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = 1  (0.0ms) 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"]] SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = 1  (0.0ms) 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 5ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.923049"], ["updated_at", "2014-04-22 23:24:48.923049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.925142"], ["updated_at", "2014-04-22 23:24:48.925142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.926685"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:48.926685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.934945"], ["updated_at", "2014-04-22 23:24:48.934945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.938185"], ["updated_at", "2014-04-22 23:24:48.938185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) 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", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 1]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.952168"], ["updated_at", "2014-04-22 23:24:48.952168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.954183"], ["updated_at", "2014-04-22 23:24:48.954183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) 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#subscribe as HTML Parameters: {"thread_id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) 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"]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Subscription Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.965570"], ["updated_at", "2014-04-22 23:24:48.965570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) 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"]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) 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"]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.983165"], ["updated_at", "2014-04-22 23:24:48.983165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.985171"], ["updated_at", "2014-04-22 23:24:48.985171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) 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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) 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"]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Subscription Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:48.996775"], ["updated_at", "2014-04-22 23:24:48.996775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) 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"]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) 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"]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) 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"]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.016080"], ["updated_at", "2014-04-22 23:24:49.016080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.018091"], ["updated_at", "2014-04-22 23:24:49.018091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) 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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.024400"], ["updated_at", "2014-04-22 23:24:49.024400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 1], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Subscription Load (0.0ms) 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"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 1], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Subscription Load (0.0ms) 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) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 1], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Commontator::Subscription Load (0.0ms) 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)  (2.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.039826"], ["updated_at", "2014-04-22 23:24:49.039826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 1 [["closed_at", "2014-04-22 23:24:49.045307"], ["updated_at", "2014-04-22 23:24:49.046027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.052144"], ["updated_at", "2014-04-22 23:24:49.052144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.066988"], ["updated_at", "2014-04-22 23:24:49.066988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.070419"], ["updated_at", "2014-04-22 23:24:49.070419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 1 [["closed_at", "2014-04-22 23:24:49.071369"], ["updated_at", "2014-04-22 23:24:49.072407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.0ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 1 [["closed_at", nil], ["updated_at", "2014-04-22 23:24:49.079694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.084617"], ["updated_at", "2014-04-22 23:24:49.084617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"1"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) 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 SQL (0.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/1 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.107598"], ["updated_at", "2014-04-22 23:24:49.107598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.110021"], ["updated_at", "2014-04-22 23:24:49.110021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) 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", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 1]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]] DummyUser Load (0.0ms) 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: 7bit

Dummy User #1 commented on DummyModel #1:

Something

Click here to view all comments on DummyModel #1.

 (1.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.152367"], ["updated_at", "2014-04-22 23:24:49.152367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (3.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.158150"], ["updated_at", "2014-04-22 23:24:49.158150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.160236"], ["updated_at", "2014-04-22 23:24:49.160236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.161971"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.161971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.0ms) 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:49.163410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.168760"], ["updated_at", "2014-04-22 23:24:49.168760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one 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 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", "2014-04-22 23:24:49.175896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.179853"], ["updated_at", "2014-04-22 23:24:49.179853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.186571"], ["updated_at", "2014-04-22 23:24:49.186571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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", "2014-04-22 23:24:49.188569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.192647"], ["updated_at", "2014-04-22 23:24:49.192647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.198529"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.198529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) 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 SQL (0.1ms) 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.202030"], ["creator_id", 1], ["creator_type", "DummyUser"], ["thread_id", 1], ["updated_at", "2014-04-22 23:24:49.202030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "updated_at" = '2014-04-22 23:24:49.204414' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-04-22 23:24:49.204414') [["thread_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) 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"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.210518"], ["updated_at", "2014-04-22 23:24:49.210518"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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"]]  (0.6ms) commit transaction  (0.0ms) begin transaction DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", nil]] SQL (0.2ms) 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"]]  (0.6ms) commit transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.2ms) 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"]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.218923"], ["updated_at", "2014-04-22 23:24:49.218923"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) 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"]]  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) 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"]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_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"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) 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"]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.233233"], ["updated_at", "2014-04-22 23:24:49.233233"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) 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"]]  (0.6ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.3ms) 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"]]  (0.7ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.241552"], ["updated_at", "2014-04-22 23:24:49.241552"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) 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"]]  (5.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.249680"], ["updated_at", "2014-04-22 23:24:49.249680"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) 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"]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.252956"], ["updated_at", "2014-04-22 23:24:49.252956"]]  (5.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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"]]  (0.7ms) commit transaction Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) 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 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) 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]]  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) 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 SQL (0.2ms) 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.270026"], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", "2014-04-22 23:24:49.270026"]]  (3.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) 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]] Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "updated_at" = '2014-04-22 23:24:49.277190' WHERE "commontator_subscriptions"."id" = 3  (0.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) 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]]  (0.0ms) begin transaction SQL (0.2ms) 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"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.282714"], ["updated_at", "2014-04-22 23:24:49.282714"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) 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"]]  (3.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) 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" = 6) LIMIT 1 SQL (0.2ms) 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"]]  (0.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (3.2ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.0ms) begin transaction SQL (0.1ms) 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"]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.297968"], ["updated_at", "2014-04-22 23:24:49.297968"]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) 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"]]  (0.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (3.1ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (0.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 4 LIMIT 1 [["thread_id", 7]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 7], ["commontable_type", "DummyModel"]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 7]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["commontable_id", nil], ["commontable_type", nil], ["updated_at", "2014-04-22 23:24:49.310418"]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.0ms) 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.311442"], ["updated_at", "2014-04-22 23:24:49.311442"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]  (3.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 4 LIMIT 1 [["thread_id", 7]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 7], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 4 LIMIT 1 [["thread_id", 8]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.317739"], ["updated_at", "2014-04-22 23:24:49.317739"]]  (6.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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"]]  (5.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", "2014-04-22 23:24:49.332396"], ["updated_at", "2014-04-22 23:24:49.332396"]]  (3.1ms) commit transaction Commontator::Subscription Load (0.1ms) 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", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 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 SQL (0.1ms) 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"]]  (3.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.341981"], ["updated_at", "2014-04-22 23:24:49.341981"]]  (5.7ms) commit transaction Commontator::Subscription Load (0.1ms) 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"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 10]]  (0.0ms) begin transaction SQL (0.1ms) 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"]]  (5.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.364684"], ["updated_at", "2014-04-22 23:24:49.364684"]]  (5.7ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-04-22 23:24:49.377684"], ["updated_at", "2014-04-22 23:24:49.377684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]] Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (15.0ms)  (0.4ms) rollback transaction