commontator 4.10.2 → 4.10.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bfa46208d357f097fcbda74b484593088651a8e
4
- data.tar.gz: 6281f47f7089ce716fa8eb8fc67703f1a323df30
3
+ metadata.gz: f5769fedf79be8ffdc8da8e46ee0bae3ea7184dd
4
+ data.tar.gz: 063c91fb45c1198cbc126dc57df8abddeca24e5f
5
5
  SHA512:
6
- metadata.gz: b7645de18bcf99f2f759fc7e1918f4b0ee8f54f622a339e7e0eb5a576a1e53fb87ddf412b90ac746fc9b670fe2c937536c4450ffdb1e55b1c76864c89949f65a
7
- data.tar.gz: 4e88f75409608af27bc70e0fec3eca5f5a70789972b48ba02096af0e38b9bfaaaaa1a315b9b4580b7023fce1f4bc9fefe67cfc7dbf139478a539c61737909752
6
+ metadata.gz: 2ed90da6359724bf48775cff080e1b25e70815d17666fd2a4aed830d25b6f385f41393f041ba92d323b3e5461afee48a34ff415d2b86800f90f88e610932cd9e
7
+ data.tar.gz: 4296f6861354db8f0f83f0966a75475d40ab891688ff1544644d4919efa3d3849c85d5552b07439eebe7c23eeef0a06ff87cc6674adbdde5f7c75df2fe1ad8f9
@@ -2,7 +2,7 @@
2
2
  display: block !important;
3
3
  }
4
4
 
5
- .thread .hidden {
5
+ .thread .commontator_hidden {
6
6
  display: none;
7
7
  }
8
8
 
@@ -3,7 +3,7 @@
3
3
  # user
4
4
  # per_page
5
5
 
6
- hidden_class = @new_comment.nil? ? ' hidden' : '' %>
6
+ hidden_class = @new_comment.nil? ? ' commontator_hidden' : '' %>
7
7
 
8
8
  <div id="thread_<%= thread.id %>_reply" class="thread_reply">
9
9
  <% if thread.is_closed? %>
@@ -1,3 +1,3 @@
1
1
  module Commontator
2
- VERSION = "4.10.2"
2
+ VERSION = "4.10.3"
3
3
  end
Binary file
@@ -35458,3 +35458,2075 @@ Commontator::Subscription: test_0001_must count unread comments
35458
35458
  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", 10], ["commontable_type", "DummyModel"]]
35459
35459
   (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 16:48:14.336552') [["thread_id", 11]]
35460
35460
   (0.5ms) rollback transaction
35461
+  (1.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar, "creator_id" integer, "editor_type" varchar, "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) 
35462
+  (0.1ms) select sqlite_version(*)
35463
+  (1.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")
35464
+  (0.1ms) SELECT sql
35465
+ FROM sqlite_master
35466
+ WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index'
35467
+ UNION ALL
35468
+ SELECT sql
35469
+ FROM sqlite_temp_master
35470
+ WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index'
35471
+
35472
+  (0.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")
35473
+  (0.1ms) SELECT sql
35474
+ FROM sqlite_master
35475
+ WHERE name='index_commontator_comments_on_cached_votes_up' AND type='index'
35476
+ UNION ALL
35477
+ SELECT sql
35478
+ FROM sqlite_temp_master
35479
+ WHERE name='index_commontator_comments_on_cached_votes_up' AND type='index'
35480
+
35481
+  (0.1ms)  SELECT sql
35482
+ FROM sqlite_master
35483
+ WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index'
35484
+ UNION ALL
35485
+ SELECT sql
35486
+ FROM sqlite_temp_master
35487
+ WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index'
35488
+ 
35489
+  (0.9ms) CREATE INDEX "index_commontator_comments_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
35490
+  (0.1ms)  SELECT sql
35491
+ FROM sqlite_master
35492
+ WHERE name='index_commontator_comments_on_c_id_and_c_type_and_t_id' AND type='index'
35493
+ UNION ALL
35494
+ SELECT sql
35495
+ FROM sqlite_temp_master
35496
+ WHERE name='index_commontator_comments_on_c_id_and_c_type_and_t_id' AND type='index'
35497
+ 
35498
+  (0.1ms) SELECT sql
35499
+ FROM sqlite_master
35500
+ WHERE name='index_commontator_comments_on_cached_votes_up' AND type='index'
35501
+ UNION ALL
35502
+ SELECT sql
35503
+ FROM sqlite_temp_master
35504
+ WHERE name='index_commontator_comments_on_cached_votes_up' AND type='index'
35505
+
35506
+  (0.1ms)  SELECT sql
35507
+ FROM sqlite_master
35508
+ WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index'
35509
+ UNION ALL
35510
+ SELECT sql
35511
+ FROM sqlite_temp_master
35512
+ WHERE name='index_commontator_comments_on_cached_votes_down' AND type='index'
35513
+ 
35514
+  (0.7ms) CREATE INDEX "index_commontator_comments_on_thread_id_and_created_at" ON "commontator_comments" ("thread_id", "created_at")
35515
+  (0.8ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
35516
+  (0.8ms) CREATE UNIQUE INDEX "index_commontator_subscriptions_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
35517
+  (0.1ms)  SELECT sql
35518
+ FROM sqlite_master
35519
+ WHERE name='index_commontator_subscriptions_on_s_id_and_s_type_and_t_id' AND type='index'
35520
+ UNION ALL
35521
+ SELECT sql
35522
+ FROM sqlite_temp_master
35523
+ WHERE name='index_commontator_subscriptions_on_s_id_and_s_type_and_t_id' AND type='index'
35524
+ 
35525
+  (0.7ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")
35526
+  (0.7ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar, "commontable_id" integer, "closed_at" datetime, "closer_type" varchar, "closer_id" integer, "created_at" datetime, "updated_at" datetime) 
35527
+  (0.8ms) CREATE UNIQUE INDEX "index_commontator_threads_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")
35528
+  (0.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
35529
+  (0.8ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
35530
+  (0.8ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar, "voter_id" integer, "voter_type" varchar, "vote_flag" boolean, "vote_scope" varchar, "vote_weight" integer, "created_at" datetime, "updated_at" datetime) 
35531
+  (0.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")
35532
+  (0.1ms)  SELECT sql
35533
+ FROM sqlite_master
35534
+ WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'
35535
+ UNION ALL
35536
+ SELECT sql
35537
+ FROM sqlite_temp_master
35538
+ WHERE name='index_votes_on_votable_id_and_votable_type_and_vote_scope' AND type='index'
35539
+ 
35540
+  (0.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")
35541
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
35542
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
35543
+  (0.1ms) SELECT version FROM "schema_migrations"
35544
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')
35545
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
35546
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('2')
35547
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
35548
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
35549
+  (0.1ms) begin transaction
35550
+ ---------------------------------------------------------------------------------
35551
+ Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized
35552
+ ---------------------------------------------------------------------------------
35553
+  (0.1ms) SAVEPOINT active_record_1
35554
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.656156"], ["updated_at", "2014-12-23 17:25:33.656156"]]
35555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35556
+  (0.0ms) SAVEPOINT active_record_1
35557
+ SQL (0.8ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.673375"], ["updated_at", "2014-12-23 17:25:33.673375"]]
35558
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35559
+ 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
35560
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:33.683463"], ["updated_at", "2014-12-23 17:25:33.683463"]]
35561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35562
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
35563
+ Parameters: {"thread_id"=>"1"}
35564
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
35565
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35566
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
35567
+ Parameters: {"thread_id"=>"1"}
35568
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35569
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35570
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
35571
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35572
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35573
+  (0.0ms) SAVEPOINT active_record_1
35574
+ 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
35575
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["created_at", "2014-12-23 17:25:33.701985"], ["updated_at", "2014-12-23 17:25:33.701985"]]
35576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35577
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
35578
+ Parameters: {"thread_id"=>"1"}
35579
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35580
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35581
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35582
+ Redirected to http://test.host/commontator/threads/1
35583
+ Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
35584
+  (1.2ms) rollback transaction
35585
+  (0.1ms) begin transaction
35586
+ ----------------------------------------------------------------------------
35587
+ Commontator::SubscriptionsController: test_0002_must subscribe if authorized
35588
+ ----------------------------------------------------------------------------
35589
+  (0.1ms) SAVEPOINT active_record_1
35590
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.711789"], ["updated_at", "2014-12-23 17:25:33.711789"]]
35591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35592
+  (0.0ms) SAVEPOINT active_record_1
35593
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.714907"], ["updated_at", "2014-12-23 17:25:33.714907"]]
35594
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35595
+ 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
35596
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:33.717741"], ["updated_at", "2014-12-23 17:25:33.717741"]]
35597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35598
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
35599
+ Parameters: {"thread_id"=>"1"}
35600
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35601
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35602
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35603
+  (0.0ms) SAVEPOINT active_record_1
35604
+ 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
35605
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["created_at", "2014-12-23 17:25:33.724000"], ["updated_at", "2014-12-23 17:25:33.724000"]]
35606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35607
+ Redirected to http://test.host/commontator/threads/1
35608
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
35609
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35610
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35611
+  (0.1ms) SAVEPOINT active_record_1
35612
+ SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]
35613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35614
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
35615
+ Parameters: {"thread_id"=>"1"}
35616
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35617
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35618
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35619
+  (0.1ms) SAVEPOINT active_record_1
35620
+ 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
35621
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["created_at", "2014-12-23 17:25:33.734735"], ["updated_at", "2014-12-23 17:25:33.734735"]]
35622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35623
+ Redirected to http://test.host/commontator/threads/1
35624
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
35625
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35626
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35627
+  (0.0ms) SAVEPOINT active_record_1
35628
+ SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]
35629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35630
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
35631
+ Parameters: {"thread_id"=>"1"}
35632
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35633
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35634
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35635
+  (0.0ms) SAVEPOINT active_record_1
35636
+ 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
35637
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["created_at", "2014-12-23 17:25:33.743800"], ["updated_at", "2014-12-23 17:25:33.743800"]]
35638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35639
+ Redirected to http://test.host/commontator/threads/1
35640
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
35641
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35642
+  (0.5ms) rollback transaction
35643
+  (0.1ms) begin transaction
35644
+ -----------------------------------------------------------------------------------
35645
+ Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized
35646
+ -----------------------------------------------------------------------------------
35647
+  (0.0ms) SAVEPOINT active_record_1
35648
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.749902"], ["updated_at", "2014-12-23 17:25:33.749902"]]
35649
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35650
+  (0.1ms) SAVEPOINT active_record_1
35651
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.752930"], ["updated_at", "2014-12-23 17:25:33.752930"]]
35652
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35653
+ 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
35654
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:33.755883"], ["updated_at", "2014-12-23 17:25:33.755883"]]
35655
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35656
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35657
+  (0.0ms) SAVEPOINT active_record_1
35658
+ 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
35659
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["created_at", "2014-12-23 17:25:33.759794"], ["updated_at", "2014-12-23 17:25:33.759794"]]
35660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35661
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
35662
+ Parameters: {"thread_id"=>"1"}
35663
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
35664
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35665
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
35666
+ Parameters: {"thread_id"=>"1"}
35667
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35668
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35669
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
35670
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35671
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35672
+  (0.0ms) SAVEPOINT active_record_1
35673
+ SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]
35674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35675
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
35676
+ Parameters: {"thread_id"=>"1"}
35677
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35678
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35679
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35680
+ Redirected to http://test.host/commontator/threads/1
35681
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
35682
+  (0.6ms) rollback transaction
35683
+  (0.0ms) begin transaction
35684
+ ------------------------------------------------------------------------------
35685
+ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized
35686
+ ------------------------------------------------------------------------------
35687
+  (0.1ms) SAVEPOINT active_record_1
35688
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.772339"], ["updated_at", "2014-12-23 17:25:33.772339"]]
35689
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35690
+  (0.1ms) SAVEPOINT active_record_1
35691
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.775496"], ["updated_at", "2014-12-23 17:25:33.775496"]]
35692
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35693
+ 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
35694
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:33.778441"], ["updated_at", "2014-12-23 17:25:33.778441"]]
35695
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35696
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35697
+  (0.0ms) SAVEPOINT active_record_1
35698
+ 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
35699
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["created_at", "2014-12-23 17:25:33.782405"], ["updated_at", "2014-12-23 17:25:33.782405"]]
35700
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35701
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
35702
+ Parameters: {"thread_id"=>"1"}
35703
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35704
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35705
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35706
+  (0.0ms) SAVEPOINT active_record_1
35707
+ SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]
35708
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35709
+ Redirected to http://test.host/commontator/threads/1
35710
+ Completed 302 Found in 11ms (ActiveRecord: 0.4ms)
35711
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35712
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35713
+  (0.1ms) SAVEPOINT active_record_1
35714
+ 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
35715
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["created_at", "2014-12-23 17:25:33.799640"], ["updated_at", "2014-12-23 17:25:33.799640"]]
35716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35717
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
35718
+ Parameters: {"thread_id"=>"1"}
35719
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35720
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35721
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35722
+  (0.0ms) SAVEPOINT active_record_1
35723
+ SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]
35724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35725
+ Redirected to http://test.host/commontator/threads/1
35726
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
35727
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35728
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35729
+  (0.0ms) SAVEPOINT active_record_1
35730
+ 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
35731
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["created_at", "2014-12-23 17:25:33.806506"], ["updated_at", "2014-12-23 17:25:33.806506"]]
35732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35733
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
35734
+ Parameters: {"thread_id"=>"1"}
35735
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35736
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35737
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35738
+  (0.0ms) SAVEPOINT active_record_1
35739
+ SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]
35740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35741
+ Redirected to http://test.host/commontator/threads/1
35742
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
35743
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35744
+  (0.6ms) rollback transaction
35745
+  (0.1ms) begin transaction
35746
+ --------------------------------------------------------------------
35747
+ Commontator::ApplicationHelper: test_0001_must print javascript proc
35748
+ --------------------------------------------------------------------
35749
+  (0.1ms) rollback transaction
35750
+  (0.0ms) begin transaction
35751
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.819351"], ["updated_at", "2014-12-23 17:25:33.819351"]]
35752
+  (0.8ms) commit transaction
35753
+  (0.1ms) begin transaction
35754
+ ----------------------------------------------------------------------
35755
+ Commontator::ThreadsController: test_0001_won't show unless authorized
35756
+ ----------------------------------------------------------------------
35757
+  (0.0ms) SAVEPOINT active_record_1
35758
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.823975"], ["updated_at", "2014-12-23 17:25:33.823975"]]
35759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35760
+  (0.0ms) SAVEPOINT active_record_1
35761
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.826063"], ["updated_at", "2014-12-23 17:25:33.826063"]]
35762
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35763
+ 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
35764
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:33.827940"], ["updated_at", "2014-12-23 17:25:33.827940"]]
35765
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35766
+ Processing by Commontator::ThreadsController#show as HTML
35767
+ Parameters: {"id"=>"1"}
35768
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35769
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35770
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
35771
+ Processing by Commontator::ThreadsController#show as HTML
35772
+ Parameters: {"id"=>"1"}
35773
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35774
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35775
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
35776
+  (0.5ms) rollback transaction
35777
+  (0.1ms) begin transaction
35778
+ -----------------------------------------------------------------
35779
+ Commontator::ThreadsController: test_0002_must show if authorized
35780
+ -----------------------------------------------------------------
35781
+  (0.0ms) SAVEPOINT active_record_1
35782
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.835842"], ["updated_at", "2014-12-23 17:25:33.835842"]]
35783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35784
+  (0.0ms) SAVEPOINT active_record_1
35785
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.838248"], ["updated_at", "2014-12-23 17:25:33.838248"]]
35786
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35787
+ 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
35788
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:33.840573"], ["updated_at", "2014-12-23 17:25:33.840573"]]
35789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35790
+ Processing by Commontator::ThreadsController#show as HTML
35791
+ Parameters: {"id"=>"1"}
35792
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35793
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35794
+ 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"]]
35795
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35796
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35797
+ Redirected to http://test.host/dummy_models/1
35798
+ Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
35799
+ Processing by Commontator::ThreadsController#show as HTML
35800
+ Parameters: {"id"=>"1"}
35801
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35802
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35803
+ 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"]]
35804
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35805
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35806
+ Redirected to http://test.host/dummy_models/1
35807
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
35808
+ Processing by Commontator::ThreadsController#show as HTML
35809
+ Parameters: {"id"=>"1"}
35810
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35811
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35812
+ 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"]]
35813
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35814
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
35815
+ Redirected to http://test.host/dummy_models/1
35816
+ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
35817
+  (0.5ms) rollback transaction
35818
+  (0.0ms) begin transaction
35819
+ --------------------------------------------------------------------------------
35820
+ Commontator::ThreadsController: test_0003_won't close unless authorized and open
35821
+ --------------------------------------------------------------------------------
35822
+  (0.0ms) SAVEPOINT active_record_1
35823
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.863617"], ["updated_at", "2014-12-23 17:25:33.863617"]]
35824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35825
+  (0.0ms) SAVEPOINT active_record_1
35826
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.865824"], ["updated_at", "2014-12-23 17:25:33.865824"]]
35827
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35828
+ 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
35829
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:33.868093"], ["updated_at", "2014-12-23 17:25:33.868093"]]
35830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35831
+ Processing by Commontator::ThreadsController#close as HTML
35832
+ Parameters: {"id"=>"1"}
35833
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
35834
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35835
+ Processing by Commontator::ThreadsController#close as HTML
35836
+ Parameters: {"id"=>"1"}
35837
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35838
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35839
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
35840
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35841
+ Processing by Commontator::ThreadsController#close as HTML
35842
+ Parameters: {"id"=>"1"}
35843
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35844
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35845
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
35846
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35847
+  (0.0ms) SAVEPOINT active_record_1
35848
+ 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
35849
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", "2014-12-23 17:25:33.873346"], ["updated_at", "2014-12-23 17:25:33.874809"], ["id", 1]]
35850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35851
+ Processing by Commontator::ThreadsController#close as HTML
35852
+ Parameters: {"id"=>"1"}
35853
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35854
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35855
+ Redirected to http://test.host/commontator/threads/1
35856
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
35857
+  (0.4ms) rollback transaction
35858
+  (0.1ms) begin transaction
35859
+ ---------------------------------------------------------------------------
35860
+ Commontator::ThreadsController: test_0004_must close if authorized and open
35861
+ ---------------------------------------------------------------------------
35862
+  (0.1ms) SAVEPOINT active_record_1
35863
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.881624"], ["updated_at", "2014-12-23 17:25:33.881624"]]
35864
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35865
+  (0.0ms) SAVEPOINT active_record_1
35866
+ SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.884692"], ["updated_at", "2014-12-23 17:25:33.884692"]]
35867
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35868
+ 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
35869
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:33.887569"], ["updated_at", "2014-12-23 17:25:33.887569"]]
35870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35871
+ Processing by Commontator::ThreadsController#close as HTML
35872
+ Parameters: {"id"=>"1"}
35873
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35874
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35875
+  (0.0ms) SAVEPOINT active_record_1
35876
+ 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
35877
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", "2014-12-23 17:25:33.891227"], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:33.892699"], ["id", 1]]
35878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35879
+ Redirected to http://test.host/commontator/threads/1
35880
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
35881
+  (0.1ms) SAVEPOINT active_record_1
35882
+ 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
35883
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", nil], ["updated_at", "2014-12-23 17:25:33.898501"], ["id", 1]]
35884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35885
+ Processing by Commontator::ThreadsController#close as HTML
35886
+ Parameters: {"id"=>"1"}
35887
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35888
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35889
+  (0.0ms) SAVEPOINT active_record_1
35890
+ 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
35891
+ SQL (0.0ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", "2014-12-23 17:25:33.900837"], ["updated_at", "2014-12-23 17:25:33.902029"], ["id", 1]]
35892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35893
+ Redirected to http://test.host/commontator/threads/1
35894
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
35895
+  (0.6ms) rollback transaction
35896
+  (0.1ms) begin transaction
35897
+ -----------------------------------------------------------------------------------
35898
+ Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed
35899
+ -----------------------------------------------------------------------------------
35900
+  (0.1ms) SAVEPOINT active_record_1
35901
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.908000"], ["updated_at", "2014-12-23 17:25:33.908000"]]
35902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35903
+  (0.0ms) SAVEPOINT active_record_1
35904
+ SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.912251"], ["updated_at", "2014-12-23 17:25:33.912251"]]
35905
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35906
+ 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
35907
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:33.915118"], ["updated_at", "2014-12-23 17:25:33.915118"]]
35908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35909
+  (0.0ms) SAVEPOINT active_record_1
35910
+ 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
35911
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", "2014-12-23 17:25:33.916446"], ["updated_at", "2014-12-23 17:25:33.917470"], ["id", 1]]
35912
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35913
+ Processing by Commontator::ThreadsController#reopen as HTML
35914
+ Parameters: {"id"=>"1"}
35915
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
35916
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35917
+ Processing by Commontator::ThreadsController#reopen as HTML
35918
+ Parameters: {"id"=>"1"}
35919
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35920
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35921
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
35922
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35923
+ Processing by Commontator::ThreadsController#reopen as HTML
35924
+ Parameters: {"id"=>"1"}
35925
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35926
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35927
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
35928
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35929
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35930
+  (0.0ms) SAVEPOINT active_record_1
35931
+ 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
35932
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", nil], ["updated_at", "2014-12-23 17:25:33.924196"], ["id", 1]]
35933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35934
+ Processing by Commontator::ThreadsController#reopen as HTML
35935
+ Parameters: {"id"=>"1"}
35936
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35937
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35938
+ Redirected to http://test.host/commontator/threads/1
35939
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
35940
+  (0.5ms) rollback transaction
35941
+  (0.1ms) begin transaction
35942
+ ------------------------------------------------------------------------------
35943
+ Commontator::ThreadsController: test_0006_must reopen if authorized and closed
35944
+ ------------------------------------------------------------------------------
35945
+  (0.0ms) SAVEPOINT active_record_1
35946
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.930989"], ["updated_at", "2014-12-23 17:25:33.930989"]]
35947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35948
+  (0.0ms) SAVEPOINT active_record_1
35949
+ SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:33.933478"], ["updated_at", "2014-12-23 17:25:33.933478"]]
35950
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35951
+ 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
35952
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:33.936352"], ["updated_at", "2014-12-23 17:25:33.936352"]]
35953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35954
+  (0.0ms) SAVEPOINT active_record_1
35955
+ 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
35956
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", "2014-12-23 17:25:33.937661"], ["updated_at", "2014-12-23 17:25:33.938790"], ["id", 1]]
35957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35958
+ Processing by Commontator::ThreadsController#reopen as HTML
35959
+ Parameters: {"id"=>"1"}
35960
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35961
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35962
+  (0.1ms) SAVEPOINT active_record_1
35963
+ 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
35964
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", nil], ["updated_at", "2014-12-23 17:25:33.943285"], ["id", 1]]
35965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35966
+ Redirected to http://test.host/commontator/threads/1
35967
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
35968
+  (0.0ms) SAVEPOINT active_record_1
35969
+ 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
35970
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", "2014-12-23 17:25:33.947422"], ["updated_at", "2014-12-23 17:25:33.948677"], ["id", 1]]
35971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35972
+ Processing by Commontator::ThreadsController#reopen as HTML
35973
+ Parameters: {"id"=>"1"}
35974
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
35975
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35976
+  (0.0ms) SAVEPOINT active_record_1
35977
+ 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
35978
+ SQL (0.0ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", nil], ["updated_at", "2014-12-23 17:25:33.952616"], ["id", 1]]
35979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35980
+ Redirected to http://test.host/commontator/threads/1
35981
+ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
35982
+  (0.5ms) rollback transaction
35983
+  (0.1ms) begin transaction
35984
+ ------------------------------------------------------------------------
35985
+ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail
35986
+ ------------------------------------------------------------------------
35987
+  (0.1ms) SAVEPOINT active_record_1
35988
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.093852"], ["updated_at", "2014-12-23 17:25:34.093852"]]
35989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35990
+  (0.0ms) SAVEPOINT active_record_1
35991
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.095908"], ["updated_at", "2014-12-23 17:25:34.095908"]]
35992
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
35993
+ 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
35994
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:34.097714"], ["updated_at", "2014-12-23 17:25:34.097714"]]
35995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35996
+  (0.0ms) SAVEPOINT active_record_1
35997
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.098845"], ["updated_at", "2014-12-23 17:25:34.098845"]]
35998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35999
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
36000
+  (0.0ms) SAVEPOINT active_record_1
36001
+ 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
36002
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["created_at", "2014-12-23 17:25:34.101324"], ["updated_at", "2014-12-23 17:25:34.101324"]]
36003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36004
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
36005
+  (0.0ms) SAVEPOINT active_record_1
36006
+ 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" = 3) LIMIT 1
36007
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 1], ["created_at", "2014-12-23 17:25:34.103556"], ["updated_at", "2014-12-23 17:25:34.103556"]]
36008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36009
+  (0.1ms) SAVEPOINT active_record_1
36010
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 1 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36011
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 1], ["creator_id", 2], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.115566"], ["updated_at", "2014-12-23 17:25:34.115566"]]
36012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36013
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 1]]
36014
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]]
36015
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]]
36016
+ Rendered /Users/dante/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.0ms)
36017
+ Rendered /Users/dante/Desktop/commontator/app/views/commontator/subscriptions_mailer/comment_created.html.erb (4.4ms)
36018
+
36019
+ Commontator::SubscriptionsMailer#comment_created: processed outbound mail in 22.8ms
36020
+
36021
+ Sent mail to Undisclosed Recipients (2.7ms)
36022
+ Date: Tue, 23 Dec 2014 11:25:34 -0600
36023
+ From: no-reply@dummy.com
36024
+ To: Undisclosed Recipients
36025
+ Message-ID: <5499a58e236ee_13c73fcea4865bc0567e4@Dantes-MacBook-Pro.local.mail>
36026
+ Subject: Dummy User #2 posted a comment on DummyModel #1
36027
+ Mime-Version: 1.0
36028
+ Content-Type: text/html;
36029
+ charset=UTF-8
36030
+ Content-Transfer-Encoding: 7bit
36031
+
36032
+ <h4>Dummy User #2 commented on DummyModel #1:</h4>
36033
+
36034
+
36035
+ <p>Something</p>
36036
+
36037
+
36038
+ <p><a href="http://test.example.com/dummy_models/1">Click here</a> to view all comments on DummyModel #1.</p>
36039
+
36040
+  (1.1ms) rollback transaction
36041
+  (0.1ms) begin transaction
36042
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.152353"], ["updated_at", "2014-12-23 17:25:34.152353"]]
36043
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
36044
+ 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
36045
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 1], ["created_at", "2014-12-23 17:25:34.155345"], ["updated_at", "2014-12-23 17:25:34.155345"]]
36046
+  (0.8ms) commit transaction
36047
+  (0.0ms) begin transaction
36048
+ ---------------------------------------------------------------
36049
+ Commontator::Subscription: test_0001_must count unread comments
36050
+ ---------------------------------------------------------------
36051
+  (0.0ms) SAVEPOINT active_record_1
36052
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.159974"], ["updated_at", "2014-12-23 17:25:34.159974"]]
36053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36054
+  (0.0ms) SAVEPOINT active_record_1
36055
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.161882"], ["updated_at", "2014-12-23 17:25:34.161882"]]
36056
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
36057
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
36058
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 2], ["created_at", "2014-12-23 17:25:34.163784"], ["updated_at", "2014-12-23 17:25:34.163784"]]
36059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36060
+  (0.0ms) SAVEPOINT active_record_1
36061
+ Commontator::Subscription Exists (0.0ms) 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
36062
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("thread_id", "subscriber_id", "subscriber_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["thread_id", 2], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["created_at", "2014-12-23 17:25:34.165849"], ["updated_at", "2014-12-23 17:25:34.165849"]]
36063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36064
+  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 17:25:34.165849') [["thread_id", 2]]
36065
+  (0.0ms) SAVEPOINT active_record_1
36066
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36067
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 2], ["creator_id", 2], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.170079"], ["updated_at", "2014-12-23 17:25:34.170079"]]
36068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36069
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
36070
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
36071
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
36072
+  (0.0ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 17:25:34.165849') [["thread_id", 2]]
36073
+  (0.0ms) SAVEPOINT active_record_1
36074
+ 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 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36075
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 2], ["creator_id", 2], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:34.174751"], ["updated_at", "2014-12-23 17:25:34.174751"]]
36076
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36077
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
36078
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
36079
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
36080
+  (0.0ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 17:25:34.165849') [["thread_id", 2]]
36081
+  (0.0ms) SAVEPOINT active_record_1
36082
+ SQL (0.1ms) UPDATE "commontator_subscriptions" SET "updated_at" = '2014-12-23 17:25:34.177364' WHERE "commontator_subscriptions"."id" = ? [["id", 1]]
36083
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36084
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
36085
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
36086
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
36087
+  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 17:25:34.177364') [["thread_id", 2]]
36088
+  (0.4ms) rollback transaction
36089
+  (0.0ms) begin transaction
36090
+ -----------------------------------------------------------------
36091
+ Commontator::SharedHelper: test_0001_must show commontator thread
36092
+ -----------------------------------------------------------------
36093
+  (0.0ms) SAVEPOINT active_record_1
36094
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.188218"], ["updated_at", "2014-12-23 17:25:34.188218"]]
36095
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
36096
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
36097
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 2], ["created_at", "2014-12-23 17:25:34.190616"], ["updated_at", "2014-12-23 17:25:34.190616"]]
36098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36099
+  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]]
36100
+ Rendered /Users/dante/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (11.2ms)
36101
+  (0.4ms) rollback transaction
36102
+  (0.0ms) begin transaction
36103
+ -------------------------------------------------------------------------------
36104
+ Commontator::Comment: test_0001_must be votable if acts_as_votable is installed
36105
+ -------------------------------------------------------------------------------
36106
+  (0.0ms) SAVEPOINT active_record_1
36107
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.209358"], ["updated_at", "2014-12-23 17:25:34.209358"]]
36108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36109
+  (0.0ms) SAVEPOINT active_record_1
36110
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.211342"], ["updated_at", "2014-12-23 17:25:34.211342"]]
36111
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
36112
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
36113
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 2], ["created_at", "2014-12-23 17:25:34.213194"], ["updated_at", "2014-12-23 17:25:34.213194"]]
36114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36115
+  (0.4ms) rollback transaction
36116
+  (0.1ms) begin transaction
36117
+ -----------------------------------------------------------------
36118
+ Commontator::Comment: test_0002_must know if it has been modified
36119
+ -----------------------------------------------------------------
36120
+  (0.0ms) SAVEPOINT active_record_1
36121
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.218900"], ["updated_at", "2014-12-23 17:25:34.218900"]]
36122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36123
+  (0.0ms) SAVEPOINT active_record_1
36124
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.220871"], ["updated_at", "2014-12-23 17:25:34.220871"]]
36125
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
36126
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
36127
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 2], ["created_at", "2014-12-23 17:25:34.225963"], ["updated_at", "2014-12-23 17:25:34.225963"]]
36128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36129
+  (0.0ms) SAVEPOINT active_record_1
36130
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36131
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 2], ["creator_id", 2], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.229227"], ["updated_at", "2014-12-23 17:25:34.229227"]]
36132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36133
+  (0.0ms) SAVEPOINT active_record_1
36134
+ 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 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36135
+ SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.231487"], ["id", 1]]
36136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36137
+  (0.5ms) rollback transaction
36138
+  (0.1ms) begin transaction
36139
+ ----------------------------------------------------------------
36140
+ Commontator::Comment: test_0003_must know if it has been deleted
36141
+ ----------------------------------------------------------------
36142
+  (0.1ms) SAVEPOINT active_record_1
36143
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.234374"], ["updated_at", "2014-12-23 17:25:34.234374"]]
36144
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36145
+  (0.0ms) SAVEPOINT active_record_1
36146
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.236966"], ["updated_at", "2014-12-23 17:25:34.236966"]]
36147
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
36148
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
36149
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 2], ["created_at", "2014-12-23 17:25:34.239467"], ["updated_at", "2014-12-23 17:25:34.239467"]]
36150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36151
+  (0.0ms) SAVEPOINT active_record_1
36152
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.241196') LIMIT 1
36153
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.242827"], ["updated_at", "2014-12-23 17:25:34.242827"]]
36154
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "deleted_at", "editor_type", "editor_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["thread_id", 2], ["creator_id", 2], ["creator_type", "DummyUser"], ["body", "Something"], ["deleted_at", "2014-12-23 17:25:34.241196"], ["editor_type", "DummyUser"], ["editor_id", 3], ["created_at", "2014-12-23 17:25:34.243723"], ["updated_at", "2014-12-23 17:25:34.243723"]]
36155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36156
+  (0.0ms) SAVEPOINT active_record_1
36157
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36158
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", nil], ["updated_at", "2014-12-23 17:25:34.246155"], ["id", 1]]
36159
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36160
+  (0.4ms) rollback transaction
36161
+  (0.0ms) begin transaction
36162
+ -----------------------------------------------------------
36163
+ Commontator::Comment: test_0004_must make proper timestamps
36164
+ -----------------------------------------------------------
36165
+  (0.0ms) SAVEPOINT active_record_1
36166
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.248750"], ["updated_at", "2014-12-23 17:25:34.248750"]]
36167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36168
+  (0.0ms) SAVEPOINT active_record_1
36169
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.250435"], ["updated_at", "2014-12-23 17:25:34.250435"]]
36170
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
36171
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
36172
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 2], ["created_at", "2014-12-23 17:25:34.252230"], ["updated_at", "2014-12-23 17:25:34.252230"]]
36173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36174
+  (0.0ms) SAVEPOINT active_record_1
36175
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36176
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 2], ["creator_id", 2], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.255448"], ["updated_at", "2014-12-23 17:25:34.255448"]]
36177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36178
+  (0.0ms) SAVEPOINT active_record_1
36179
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.257169"], ["updated_at", "2014-12-23 17:25:34.257169"]]
36180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36181
+  (0.1ms) SAVEPOINT active_record_1
36182
+ 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 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36183
+ SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["body", "Something else"], ["editor_id", 3], ["editor_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.259803"], ["id", 1]]
36184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36185
+  (0.5ms) rollback transaction
36186
+  (0.1ms) begin transaction
36187
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.263545"], ["updated_at", "2014-12-23 17:25:34.263545"]]
36188
+  (0.7ms) commit transaction
36189
+  (0.0ms) begin transaction
36190
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.266727"], ["updated_at", "2014-12-23 17:25:34.266727"]]
36191
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
36192
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
36193
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 2], ["created_at", "2014-12-23 17:25:34.268914"], ["updated_at", "2014-12-23 17:25:34.268914"]]
36194
+  (0.6ms) commit transaction
36195
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2]]
36196
+  (0.0ms) begin transaction
36197
+ 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
36198
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["created_at", "2014-12-23 17:25:34.272662"], ["updated_at", "2014-12-23 17:25:34.272662"]]
36199
+  (0.6ms) commit transaction
36200
+  (0.0ms) begin transaction
36201
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.274264"], ["updated_at", "2014-12-23 17:25:34.274264"]]
36202
+  (0.6ms) commit transaction
36203
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2]]
36204
+  (0.0ms) begin transaction
36205
+ 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
36206
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["created_at", "2014-12-23 17:25:34.277276"], ["updated_at", "2014-12-23 17:25:34.277276"]]
36207
+  (0.7ms) commit transaction
36208
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2]]
36209
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
36210
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]]
36211
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2]]
36212
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
36213
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 3]]
36214
+  (0.0ms) begin transaction
36215
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.281611"], ["updated_at", "2014-12-23 17:25:34.281611"]]
36216
+  (0.6ms) commit transaction
36217
+  (0.0ms) begin transaction
36218
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.283809"], ["updated_at", "2014-12-23 17:25:34.283809"]]
36219
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]]
36220
+ 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
36221
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 3], ["created_at", "2014-12-23 17:25:34.285557"], ["updated_at", "2014-12-23 17:25:34.285557"]]
36222
+  (0.7ms) commit transaction
36223
+  (0.0ms) begin transaction
36224
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36225
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 3], ["creator_id", 4], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.288676"], ["updated_at", "2014-12-23 17:25:34.288676"]]
36226
+  (0.7ms) commit transaction
36227
+  (0.0ms) begin transaction
36228
+ 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" = 4 AND "commontator_comments"."thread_id" = 3 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36229
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 3], ["creator_id", 4], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:34.291598"], ["updated_at", "2014-12-23 17:25:34.291598"]]
36230
+  (0.7ms) commit transaction
36231
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]
36232
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY created_at ASC [["thread_id", 3]]
36233
+  (0.0ms) begin transaction
36234
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.294900"], ["updated_at", "2014-12-23 17:25:34.294900"]]
36235
+  (0.7ms) commit transaction
36236
+  (0.1ms) begin transaction
36237
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.297442"], ["updated_at", "2014-12-23 17:25:34.297442"]]
36238
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]]
36239
+ 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
36240
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 4], ["created_at", "2014-12-23 17:25:34.299767"], ["updated_at", "2014-12-23 17:25:34.299767"]]
36241
+  (0.7ms) commit transaction
36242
+  (0.1ms) begin transaction
36243
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", nil]]
36244
+ SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["commontable_id", nil], ["updated_at", "2014-12-23 17:25:34.302190"], ["id", 4]]
36245
+  (0.6ms) commit transaction
36246
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]
36247
+  (0.0ms) begin transaction
36248
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.304402"], ["updated_at", "2014-12-23 17:25:34.304402"]]
36249
+  (0.6ms) commit transaction
36250
+  (0.0ms) begin transaction
36251
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.306675"], ["updated_at", "2014-12-23 17:25:34.306675"]]
36252
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]]
36253
+ 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
36254
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 5], ["created_at", "2014-12-23 17:25:34.308311"], ["updated_at", "2014-12-23 17:25:34.308311"]]
36255
+  (0.7ms) commit transaction
36256
+  (0.0ms) begin transaction
36257
+ Commontator::Comment Exists (0.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 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36258
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 5], ["creator_id", 6], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.311452"], ["updated_at", "2014-12-23 17:25:34.311452"]]
36259
+  (0.7ms) commit transaction
36260
+  (0.0ms) begin transaction
36261
+ 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
36262
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", "2014-12-23 17:25:34.313134"], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.314302"], ["id", 5]]
36263
+  (0.6ms) commit transaction
36264
+ Commontator::Comment Exists (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = ? [["thread_id", 5], ["id", 3]]
36265
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]]
36266
+ 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", 5], ["commontable_type", "DummyModel"]]
36267
+  (0.0ms) begin transaction
36268
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]]
36269
+ SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["commontable_id", nil], ["commontable_type", nil], ["updated_at", "2014-12-23 17:25:34.319477"], ["id", 5]]
36270
+ 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
36271
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", "2014-12-23 17:25:34.320895"], ["updated_at", "2014-12-23 17:25:34.320895"]]
36272
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]
36273
+  (0.6ms) commit transaction
36274
+ Commontator::Comment Exists (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = ? [["thread_id", 5], ["id", 3]]
36275
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]]
36276
+ 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", 5], ["commontable_type", "DummyModel"]]
36277
+ Commontator::Comment Exists (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = ? [["thread_id", 6], ["id", 3]]
36278
+  (0.0ms) begin transaction
36279
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.324800"], ["updated_at", "2014-12-23 17:25:34.324800"]]
36280
+  (0.7ms) commit transaction
36281
+  (0.0ms) begin transaction
36282
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.327011"], ["updated_at", "2014-12-23 17:25:34.327011"]]
36283
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]]
36284
+ 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
36285
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 6], ["created_at", "2014-12-23 17:25:34.328646"], ["updated_at", "2014-12-23 17:25:34.328646"]]
36286
+  (0.7ms) commit transaction
36287
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7]]
36288
+  (0.0ms) begin transaction
36289
+ 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" = 7) LIMIT 1
36290
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["created_at", "2014-12-23 17:25:34.332116"], ["updated_at", "2014-12-23 17:25:34.332116"]]
36291
+  (0.7ms) commit transaction
36292
+  (0.0ms) begin transaction
36293
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.333802"], ["updated_at", "2014-12-23 17:25:34.333802"]]
36294
+  (0.6ms) commit transaction
36295
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7]]
36296
+  (0.0ms) begin transaction
36297
+ 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" = 8) LIMIT 1
36298
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["created_at", "2014-12-23 17:25:34.336958"], ["updated_at", "2014-12-23 17:25:34.336958"]]
36299
+  (0.6ms) commit transaction
36300
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]
36301
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 7]]
36302
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 8]]
36303
+  (0.0ms) begin transaction
36304
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.340077"], ["updated_at", "2014-12-23 17:25:34.340077"]]
36305
+  (0.6ms) commit transaction
36306
+  (0.0ms) begin transaction
36307
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.342886"], ["updated_at", "2014-12-23 17:25:34.342886"]]
36308
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]]
36309
+ 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
36310
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 7], ["created_at", "2014-12-23 17:25:34.344805"], ["updated_at", "2014-12-23 17:25:34.344805"]]
36311
+  (0.7ms) commit transaction
36312
+  (0.0ms) begin transaction
36313
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.346721"], ["updated_at", "2014-12-23 17:25:34.346721"]]
36314
+  (0.6ms) commit transaction
36315
+  (0.0ms) begin transaction
36316
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.348836"], ["updated_at", "2014-12-23 17:25:34.348836"]]
36317
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]]
36318
+ 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
36319
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 8], ["created_at", "2014-12-23 17:25:34.350421"], ["updated_at", "2014-12-23 17:25:34.350421"]]
36320
+  (0.6ms) commit transaction
36321
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9]]
36322
+  (0.0ms) begin transaction
36323
+ 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
36324
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["created_at", "2014-12-23 17:25:34.354086"], ["updated_at", "2014-12-23 17:25:34.354086"]]
36325
+  (0.7ms) commit transaction
36326
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9]]
36327
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]]
36328
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]]
36329
+  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 17:25:34.354086') [["thread_id", 9]]
36330
+  (0.0ms) begin transaction
36331
+ Commontator::Comment Exists (0.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" = 9 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36332
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 9], ["creator_id", 10], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.359262"], ["updated_at", "2014-12-23 17:25:34.359262"]]
36333
+  (0.7ms) commit transaction
36334
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 5]]
36335
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]]
36336
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]]
36337
+  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 17:25:34.354086') [["thread_id", 9]]
36338
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9]]
36339
+  (0.0ms) begin transaction
36340
+ SQL (0.1ms) UPDATE "commontator_subscriptions" SET "updated_at" = '2014-12-23 17:25:34.363490' WHERE "commontator_subscriptions"."id" = ? [["id", 5]]
36341
+  (0.6ms) commit transaction
36342
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 5]]
36343
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]]
36344
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]]
36345
+  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 17:25:34.363490') [["thread_id", 9]]
36346
+  (0.1ms) begin transaction
36347
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.366873"], ["updated_at", "2014-12-23 17:25:34.366873"]]
36348
+  (0.6ms) commit transaction
36349
+  (0.0ms) begin transaction
36350
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.369138"], ["updated_at", "2014-12-23 17:25:34.369138"]]
36351
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]]
36352
+ 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
36353
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 9], ["created_at", "2014-12-23 17:25:34.370847"], ["updated_at", "2014-12-23 17:25:34.370847"]]
36354
+  (0.6ms) commit transaction
36355
+  (0.0ms) begin transaction
36356
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
36357
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", "2014-12-23 17:25:34.372325"], ["closer_id", 11], ["closer_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.373274"], ["id", 10]]
36358
+  (0.6ms) commit transaction
36359
+  (0.0ms) begin transaction
36360
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
36361
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", nil], ["updated_at", "2014-12-23 17:25:34.375652"], ["id", 10]]
36362
+  (0.6ms) commit transaction
36363
+  (0.0ms) begin transaction
36364
+ --------------------------------------------------------------------------
36365
+ Commontator::CommentsController: test_0001_won't get new unless authorized
36366
+ --------------------------------------------------------------------------
36367
+  (0.0ms) SAVEPOINT active_record_1
36368
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.378880"], ["updated_at", "2014-12-23 17:25:34.378880"]]
36369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36370
+  (0.0ms) SAVEPOINT active_record_1
36371
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.380459"], ["updated_at", "2014-12-23 17:25:34.380459"]]
36372
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36373
+ 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
36374
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.382166"], ["updated_at", "2014-12-23 17:25:34.382166"]]
36375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36376
+  (0.0ms) SAVEPOINT active_record_1
36377
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36378
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.385192"], ["updated_at", "2014-12-23 17:25:34.385192"]]
36379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36380
+ Processing by Commontator::CommentsController#new as HTML
36381
+ Parameters: {"thread_id"=>"11"}
36382
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
36383
+ Processing by Commontator::CommentsController#new as HTML
36384
+ Parameters: {"thread_id"=>"11"}
36385
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36386
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36387
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
36388
+  (0.4ms) rollback transaction
36389
+  (0.5ms) begin transaction
36390
+ ---------------------------------------------------------------------
36391
+ Commontator::CommentsController: test_0002_must get new if authorized
36392
+ ---------------------------------------------------------------------
36393
+  (0.0ms) SAVEPOINT active_record_1
36394
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.392146"], ["updated_at", "2014-12-23 17:25:34.392146"]]
36395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36396
+  (0.0ms) SAVEPOINT active_record_1
36397
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.394329"], ["updated_at", "2014-12-23 17:25:34.394329"]]
36398
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36399
+ 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
36400
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.396462"], ["updated_at", "2014-12-23 17:25:34.396462"]]
36401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36402
+  (0.0ms) SAVEPOINT active_record_1
36403
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36404
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.398956"], ["updated_at", "2014-12-23 17:25:34.398956"]]
36405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36406
+ Processing by Commontator::CommentsController#new as HTML
36407
+ Parameters: {"thread_id"=>"11"}
36408
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36409
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36410
+ Redirected to http://test.host/commontator/threads/11
36411
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
36412
+ Processing by Commontator::CommentsController#new as HTML
36413
+ Parameters: {"thread_id"=>"11"}
36414
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36415
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36416
+ Redirected to http://test.host/commontator/threads/11
36417
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
36418
+ Processing by Commontator::CommentsController#new as HTML
36419
+ Parameters: {"thread_id"=>"11"}
36420
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36421
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36422
+ Redirected to http://test.host/commontator/threads/11
36423
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
36424
+  (0.4ms) rollback transaction
36425
+  (0.0ms) begin transaction
36426
+ -------------------------------------------------------------------------
36427
+ Commontator::CommentsController: test_0003_won't create unless authorized
36428
+ -------------------------------------------------------------------------
36429
+  (0.1ms) SAVEPOINT active_record_1
36430
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.414661"], ["updated_at", "2014-12-23 17:25:34.414661"]]
36431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36432
+  (0.0ms) SAVEPOINT active_record_1
36433
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.417338"], ["updated_at", "2014-12-23 17:25:34.417338"]]
36434
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36435
+ 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
36436
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.419788"], ["updated_at", "2014-12-23 17:25:34.419788"]]
36437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36438
+  (0.0ms) SAVEPOINT active_record_1
36439
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36440
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.422594"], ["updated_at", "2014-12-23 17:25:34.422594"]]
36441
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36442
+ Processing by Commontator::CommentsController#create as HTML
36443
+ Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
36444
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
36445
+ Processing by Commontator::CommentsController#create as HTML
36446
+ Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
36447
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36448
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36449
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
36450
+  (0.0ms) SAVEPOINT active_record_1
36451
+ 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
36452
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ? [["closed_at", "2014-12-23 17:25:34.427940"], ["updated_at", "2014-12-23 17:25:34.429140"], ["id", 11]]
36453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36454
+ Processing by Commontator::CommentsController#create as HTML
36455
+ Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
36456
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36457
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36458
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
36459
+  (0.4ms) rollback transaction
36460
+  (0.0ms) begin transaction
36461
+ --------------------------------------------------------------------
36462
+ Commontator::CommentsController: test_0004_must create if authorized
36463
+ --------------------------------------------------------------------
36464
+  (0.0ms) SAVEPOINT active_record_1
36465
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.433330"], ["updated_at", "2014-12-23 17:25:34.433330"]]
36466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36467
+  (0.0ms) SAVEPOINT active_record_1
36468
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.434975"], ["updated_at", "2014-12-23 17:25:34.434975"]]
36469
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36470
+ 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
36471
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.436637"], ["updated_at", "2014-12-23 17:25:34.436637"]]
36472
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36473
+  (0.0ms) SAVEPOINT active_record_1
36474
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36475
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.438912"], ["updated_at", "2014-12-23 17:25:34.438912"]]
36476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36477
+ Processing by Commontator::CommentsController#create as HTML
36478
+ Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
36479
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36480
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36481
+  (0.0ms) SAVEPOINT active_record_1
36482
+ 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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36483
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:34.443085"], ["updated_at", "2014-12-23 17:25:34.443085"]]
36484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36485
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 11]]
36486
+ Redirected to http://test.host/commontator/threads/11
36487
+ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
36488
+ Processing by Commontator::CommentsController#create as HTML
36489
+ Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Another thing"}}
36490
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36491
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36492
+  (0.0ms) SAVEPOINT active_record_1
36493
+ 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" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36494
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Another thing"], ["created_at", "2014-12-23 17:25:34.452151"], ["updated_at", "2014-12-23 17:25:34.452151"]]
36495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36496
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 11]]
36497
+ Redirected to http://test.host/commontator/threads/11
36498
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
36499
+ Processing by Commontator::CommentsController#create as HTML
36500
+ Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"And this too"}}
36501
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36502
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36503
+  (0.1ms) SAVEPOINT active_record_1
36504
+ 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" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36505
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "And this too"], ["created_at", "2014-12-23 17:25:34.461552"], ["updated_at", "2014-12-23 17:25:34.461552"]]
36506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36507
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 11]]
36508
+ Redirected to http://test.host/commontator/threads/11
36509
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
36510
+  (0.6ms) rollback transaction
36511
+  (0.1ms) begin transaction
36512
+ -------------------------------------------------------------------------
36513
+ Commontator::CommentsController: test_0005_won't create if double posting
36514
+ -------------------------------------------------------------------------
36515
+  (0.1ms) SAVEPOINT active_record_1
36516
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.469361"], ["updated_at", "2014-12-23 17:25:34.469361"]]
36517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36518
+  (0.0ms) SAVEPOINT active_record_1
36519
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.472184"], ["updated_at", "2014-12-23 17:25:34.472184"]]
36520
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36521
+ 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
36522
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.474883"], ["updated_at", "2014-12-23 17:25:34.474883"]]
36523
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36524
+  (0.0ms) SAVEPOINT active_record_1
36525
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36526
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.478040"], ["updated_at", "2014-12-23 17:25:34.478040"]]
36527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36528
+ Processing by Commontator::CommentsController#create as HTML
36529
+ Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something"}}
36530
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36531
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36532
+  (0.0ms) SAVEPOINT active_record_1
36533
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36534
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
36535
+ Redirected to http://test.host/commontator/threads/11
36536
+ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
36537
+ Processing by Commontator::CommentsController#create as HTML
36538
+ Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
36539
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36540
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36541
+  (0.0ms) SAVEPOINT active_record_1
36542
+ 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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36543
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:34.490110"], ["updated_at", "2014-12-23 17:25:34.490110"]]
36544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36545
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 11]]
36546
+ Redirected to http://test.host/commontator/threads/11
36547
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
36548
+ Processing by Commontator::CommentsController#create as HTML
36549
+ Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
36550
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36551
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36552
+  (0.0ms) SAVEPOINT active_record_1
36553
+ 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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36554
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
36555
+ Redirected to http://test.host/commontator/threads/11
36556
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
36557
+  (0.6ms) rollback transaction
36558
+  (0.1ms) begin transaction
36559
+ -----------------------------------------------------------------------
36560
+ Commontator::CommentsController: test_0006_won't edit unless authorized
36561
+ -----------------------------------------------------------------------
36562
+  (0.0ms) SAVEPOINT active_record_1
36563
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.503292"], ["updated_at", "2014-12-23 17:25:34.503292"]]
36564
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36565
+  (0.1ms) SAVEPOINT active_record_1
36566
+ SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.506479"], ["updated_at", "2014-12-23 17:25:34.506479"]]
36567
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36568
+ 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
36569
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.509379"], ["updated_at", "2014-12-23 17:25:34.509379"]]
36570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36571
+  (0.0ms) SAVEPOINT active_record_1
36572
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36573
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.512421"], ["updated_at", "2014-12-23 17:25:34.512421"]]
36574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36575
+ Processing by Commontator::CommentsController#edit as HTML
36576
+ Parameters: {"id"=>"5"}
36577
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
36578
+ Processing by Commontator::CommentsController#edit as HTML
36579
+ Parameters: {"id"=>"5"}
36580
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36581
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36582
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36583
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36584
+ 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", 11]]
36585
+ Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)
36586
+  (0.0ms) SAVEPOINT active_record_1
36587
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.519818"], ["updated_at", "2014-12-23 17:25:34.519818"]]
36588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36589
+ Processing by Commontator::CommentsController#edit as HTML
36590
+ Parameters: {"id"=>"5"}
36591
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36592
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36593
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36594
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36595
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
36596
+  (0.0ms) SAVEPOINT active_record_1
36597
+ 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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36598
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:34.524119"], ["updated_at", "2014-12-23 17:25:34.524119"]]
36599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36600
+ Processing by Commontator::CommentsController#edit as HTML
36601
+ Parameters: {"id"=>"5"}
36602
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36603
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36604
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36605
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36606
+ 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", 11]]
36607
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
36608
+  (0.5ms) rollback transaction
36609
+  (0.0ms) begin transaction
36610
+ ------------------------------------------------------------------
36611
+ Commontator::CommentsController: test_0007_must edit if authorized
36612
+ ------------------------------------------------------------------
36613
+  (0.0ms) SAVEPOINT active_record_1
36614
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.529217"], ["updated_at", "2014-12-23 17:25:34.529217"]]
36615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36616
+  (0.0ms) SAVEPOINT active_record_1
36617
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.530791"], ["updated_at", "2014-12-23 17:25:34.530791"]]
36618
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36619
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
36620
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.532464"], ["updated_at", "2014-12-23 17:25:34.532464"]]
36621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36622
+  (0.0ms) SAVEPOINT active_record_1
36623
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36624
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.534775"], ["updated_at", "2014-12-23 17:25:34.534775"]]
36625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36626
+ Processing by Commontator::CommentsController#edit as HTML
36627
+ Parameters: {"id"=>"5"}
36628
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36629
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36630
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36631
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36632
+ 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", 11]]
36633
+ Redirected to http://test.host/commontator/threads/11
36634
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
36635
+ Processing by Commontator::CommentsController#edit as HTML
36636
+ Parameters: {"id"=>"5"}
36637
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36638
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36639
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36640
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36641
+ 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", 11]]
36642
+ Redirected to http://test.host/commontator/threads/11
36643
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
36644
+ Processing by Commontator::CommentsController#edit as HTML
36645
+ Parameters: {"id"=>"5"}
36646
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36647
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36648
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36649
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36650
+ 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", 11]]
36651
+ Redirected to http://test.host/commontator/threads/11
36652
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
36653
+  (0.5ms) rollback transaction
36654
+  (0.0ms) begin transaction
36655
+ -------------------------------------------------------------------------
36656
+ Commontator::CommentsController: test_0008_won't update unless authorized
36657
+ -------------------------------------------------------------------------
36658
+  (0.0ms) SAVEPOINT active_record_1
36659
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.553160"], ["updated_at", "2014-12-23 17:25:34.553160"]]
36660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36661
+  (0.0ms) SAVEPOINT active_record_1
36662
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.555103"], ["updated_at", "2014-12-23 17:25:34.555103"]]
36663
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36664
+ 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
36665
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.556971"], ["updated_at", "2014-12-23 17:25:34.556971"]]
36666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36667
+  (0.0ms) SAVEPOINT active_record_1
36668
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36669
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.560276"], ["updated_at", "2014-12-23 17:25:34.560276"]]
36670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36671
+ Processing by Commontator::CommentsController#update as HTML
36672
+ Parameters: {"id"=>"5", "comment"=>{"body"=>"Something else"}}
36673
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
36674
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36675
+ Processing by Commontator::CommentsController#update as HTML
36676
+ Parameters: {"id"=>"5", "comment"=>{"body"=>"Something else"}}
36677
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36678
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36679
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36680
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36681
+ 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", 11]]
36682
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
36683
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36684
+  (0.0ms) SAVEPOINT active_record_1
36685
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.566596"], ["updated_at", "2014-12-23 17:25:34.566596"]]
36686
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36687
+ Processing by Commontator::CommentsController#update as HTML
36688
+ Parameters: {"id"=>"5", "comment"=>{"body"=>"Something else"}}
36689
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36690
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36691
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36692
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36693
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
36694
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36695
+  (0.0ms) SAVEPOINT active_record_1
36696
+ 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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36697
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:34.570712"], ["updated_at", "2014-12-23 17:25:34.570712"]]
36698
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36699
+ Processing by Commontator::CommentsController#update as HTML
36700
+ Parameters: {"id"=>"5", "comment"=>{"body"=>"Something else"}}
36701
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36702
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36703
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36704
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36705
+ 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", 11]]
36706
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
36707
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36708
+  (0.5ms) rollback transaction
36709
+  (0.0ms) begin transaction
36710
+ --------------------------------------------------------------------
36711
+ Commontator::CommentsController: test_0009_must update if authorized
36712
+ --------------------------------------------------------------------
36713
+  (0.0ms) SAVEPOINT active_record_1
36714
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.576159"], ["updated_at", "2014-12-23 17:25:34.576159"]]
36715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36716
+  (0.0ms) SAVEPOINT active_record_1
36717
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.577805"], ["updated_at", "2014-12-23 17:25:34.577805"]]
36718
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36719
+ 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
36720
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.579612"], ["updated_at", "2014-12-23 17:25:34.579612"]]
36721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36722
+  (0.0ms) SAVEPOINT active_record_1
36723
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36724
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.581831"], ["updated_at", "2014-12-23 17:25:34.581831"]]
36725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36726
+ Processing by Commontator::CommentsController#update as HTML
36727
+ Parameters: {"id"=>"5", "comment"=>{"body"=>"Something else"}}
36728
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36729
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36730
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36731
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36732
+ 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", 11]]
36733
+  (0.0ms) SAVEPOINT active_record_1
36734
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36735
+ SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["body", "Something else"], ["editor_id", 12], ["editor_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.587347"], ["id", 5]]
36736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36737
+ Redirected to http://test.host/commontator/threads/11
36738
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
36739
+ Processing by Commontator::CommentsController#update as HTML
36740
+ Parameters: {"id"=>"5", "comment"=>{"body"=>"Something else"}}
36741
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36742
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36743
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36744
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36745
+ 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", 11]]
36746
+  (0.0ms) SAVEPOINT active_record_1
36747
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36749
+ Redirected to http://test.host/commontator/threads/11
36750
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
36751
+ Processing by Commontator::CommentsController#update as HTML
36752
+ Parameters: {"id"=>"5", "comment"=>{"body"=>"Something else"}}
36753
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36754
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36755
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36756
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36757
+ 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", 11]]
36758
+  (0.0ms) SAVEPOINT active_record_1
36759
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36761
+ Redirected to http://test.host/commontator/threads/11
36762
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
36763
+  (0.6ms) rollback transaction
36764
+  (0.1ms) begin transaction
36765
+ -----------------------------------------------------------------------------------------
36766
+ Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted
36767
+ -----------------------------------------------------------------------------------------
36768
+  (0.1ms) SAVEPOINT active_record_1
36769
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.610259"], ["updated_at", "2014-12-23 17:25:34.610259"]]
36770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36771
+  (0.1ms) SAVEPOINT active_record_1
36772
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.613221"], ["updated_at", "2014-12-23 17:25:34.613221"]]
36773
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36774
+ 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
36775
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.615972"], ["updated_at", "2014-12-23 17:25:34.615972"]]
36776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36777
+  (0.0ms) SAVEPOINT active_record_1
36778
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36779
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.619026"], ["updated_at", "2014-12-23 17:25:34.619026"]]
36780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36781
+ Processing by Commontator::CommentsController#delete as HTML
36782
+ Parameters: {"id"=>"5"}
36783
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
36784
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36785
+ Processing by Commontator::CommentsController#delete as HTML
36786
+ Parameters: {"id"=>"5"}
36787
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36788
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36789
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36790
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36791
+ 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", 11]]
36792
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
36793
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36794
+  (0.0ms) SAVEPOINT active_record_1
36795
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36796
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.624796') LIMIT 1
36797
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", "2014-12-23 17:25:34.624796"], ["editor_id", 12], ["editor_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.626534"], ["id", 5]]
36798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36799
+ Processing by Commontator::CommentsController#delete as HTML
36800
+ Parameters: {"id"=>"5"}
36801
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36802
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36803
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36804
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36805
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36806
+ 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", 11]]
36807
+ Redirected to http://test.host/commontator/threads/11
36808
+ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
36809
+  (0.0ms) SAVEPOINT active_record_1
36810
+ 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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36811
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:34.635727"], ["updated_at", "2014-12-23 17:25:34.635727"]]
36812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36813
+  (0.0ms) SAVEPOINT active_record_1
36814
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36815
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", nil], ["updated_at", "2014-12-23 17:25:34.637707"], ["id", 5]]
36816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36817
+ Processing by Commontator::CommentsController#delete as HTML
36818
+ Parameters: {"id"=>"5"}
36819
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36820
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36821
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36822
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36823
+ 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", 11]]
36824
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
36825
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36826
+  (0.6ms) rollback transaction
36827
+  (0.1ms) begin transaction
36828
+ ------------------------------------------------------------------------------------
36829
+ Commontator::CommentsController: test_0011_must delete if authorized and not deleted
36830
+ ------------------------------------------------------------------------------------
36831
+  (0.0ms) SAVEPOINT active_record_1
36832
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.644082"], ["updated_at", "2014-12-23 17:25:34.644082"]]
36833
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36834
+  (0.0ms) SAVEPOINT active_record_1
36835
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.646207"], ["updated_at", "2014-12-23 17:25:34.646207"]]
36836
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36837
+ Commontator::Thread Exists (0.3ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
36838
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.649454"], ["updated_at", "2014-12-23 17:25:34.649454"]]
36839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36840
+  (0.0ms) SAVEPOINT active_record_1
36841
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36842
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.652892"], ["updated_at", "2014-12-23 17:25:34.652892"]]
36843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36844
+ Processing by Commontator::CommentsController#delete as HTML
36845
+ Parameters: {"id"=>"5"}
36846
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36847
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36848
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36849
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36850
+ 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", 11]]
36851
+  (0.0ms) SAVEPOINT active_record_1
36852
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.657727') LIMIT 1
36853
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", "2014-12-23 17:25:34.657727"], ["editor_id", 12], ["editor_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.659074"], ["id", 5]]
36854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36855
+ Redirected to http://test.host/commontator/threads/11
36856
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
36857
+  (0.0ms) SAVEPOINT active_record_1
36858
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.663567"], ["updated_at", "2014-12-23 17:25:34.663567"]]
36859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36860
+  (0.0ms) SAVEPOINT active_record_1
36861
+ 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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36862
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:34.665703"], ["updated_at", "2014-12-23 17:25:34.665703"]]
36863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36864
+  (0.0ms) SAVEPOINT active_record_1
36865
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36866
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", nil], ["updated_at", "2014-12-23 17:25:34.667685"], ["id", 5]]
36867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36868
+ Processing by Commontator::CommentsController#delete as HTML
36869
+ Parameters: {"id"=>"5"}
36870
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36871
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36872
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36873
+  (0.0ms) SAVEPOINT active_record_1
36874
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.669919') LIMIT 1
36875
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", "2014-12-23 17:25:34.669919"], ["editor_id", 13], ["updated_at", "2014-12-23 17:25:34.671213"], ["id", 5]]
36876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36877
+ Redirected to http://test.host/commontator/threads/11
36878
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
36879
+  (0.0ms) SAVEPOINT active_record_1
36880
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36881
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", nil], ["editor_id", 12], ["updated_at", "2014-12-23 17:25:34.676116"], ["id", 5]]
36882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36883
+ Processing by Commontator::CommentsController#delete as HTML
36884
+ Parameters: {"id"=>"5"}
36885
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36886
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36887
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36888
+  (0.0ms) SAVEPOINT active_record_1
36889
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.678361') LIMIT 1
36890
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", "2014-12-23 17:25:34.678361"], ["editor_id", 13], ["updated_at", "2014-12-23 17:25:34.679676"], ["id", 5]]
36891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36892
+ Redirected to http://test.host/commontator/threads/11
36893
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
36894
+  (0.6ms) rollback transaction
36895
+  (0.1ms) begin transaction
36896
+ ---------------------------------------------------------------------------------------
36897
+ Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted
36898
+ ---------------------------------------------------------------------------------------
36899
+  (0.1ms) SAVEPOINT active_record_1
36900
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.685555"], ["updated_at", "2014-12-23 17:25:34.685555"]]
36901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36902
+  (0.0ms) SAVEPOINT active_record_1
36903
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.688408"], ["updated_at", "2014-12-23 17:25:34.688408"]]
36904
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36905
+ 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
36906
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.691365"], ["updated_at", "2014-12-23 17:25:34.691365"]]
36907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36908
+  (0.0ms) SAVEPOINT active_record_1
36909
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36910
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.694626"], ["updated_at", "2014-12-23 17:25:34.694626"]]
36911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36912
+  (0.1ms) SAVEPOINT active_record_1
36913
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.695775') LIMIT 1
36914
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", "2014-12-23 17:25:34.695775"], ["editor_id", 12], ["editor_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.697116"], ["id", 5]]
36915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36916
+ Processing by Commontator::CommentsController#undelete as HTML
36917
+ Parameters: {"id"=>"5"}
36918
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
36919
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36920
+ Processing by Commontator::CommentsController#undelete as HTML
36921
+ Parameters: {"id"=>"5"}
36922
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36923
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36924
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36925
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36926
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36927
+ 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", 11]]
36928
+ Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)
36929
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36930
+  (0.0ms) SAVEPOINT active_record_1
36931
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36932
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36933
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", nil], ["updated_at", "2014-12-23 17:25:34.706378"], ["id", 5]]
36934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36935
+ Processing by Commontator::CommentsController#undelete as HTML
36936
+ Parameters: {"id"=>"5"}
36937
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36938
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36939
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36940
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36941
+ 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", 11]]
36942
+ Redirected to http://test.host/commontator/threads/11
36943
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
36944
+  (0.0ms) SAVEPOINT active_record_1
36945
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.712630"], ["updated_at", "2014-12-23 17:25:34.712630"]]
36946
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36947
+  (0.0ms) SAVEPOINT active_record_1
36948
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.713403') LIMIT 1
36949
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", "2014-12-23 17:25:34.713403"], ["editor_id", 13], ["updated_at", "2014-12-23 17:25:34.714595"], ["id", 5]]
36950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36951
+ Processing by Commontator::CommentsController#undelete as HTML
36952
+ Parameters: {"id"=>"5"}
36953
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36954
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36955
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36956
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 13]]
36957
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
36958
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36959
+  (0.0ms) SAVEPOINT active_record_1
36960
+ 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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36961
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:34.718984"], ["updated_at", "2014-12-23 17:25:34.718984"]]
36962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36963
+  (0.0ms) SAVEPOINT active_record_1
36964
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36965
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36966
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", nil], ["editor_id", 12], ["updated_at", "2014-12-23 17:25:34.721390"], ["id", 5]]
36967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36968
+  (0.0ms) SAVEPOINT active_record_1
36969
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.722129') LIMIT 1
36970
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", "2014-12-23 17:25:34.722129"], ["updated_at", "2014-12-23 17:25:34.723221"], ["id", 5]]
36971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36972
+ Processing by Commontator::CommentsController#undelete as HTML
36973
+ Parameters: {"id"=>"5"}
36974
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36975
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
36976
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36977
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36978
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
36979
+ 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", 11]]
36980
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
36981
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
36982
+  (0.4ms) rollback transaction
36983
+  (0.0ms) begin transaction
36984
+ ----------------------------------------------------------------------------------
36985
+ Commontator::CommentsController: test_0013_must undelete if authorized and deleted
36986
+ ----------------------------------------------------------------------------------
36987
+  (0.0ms) SAVEPOINT active_record_1
36988
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.728897"], ["updated_at", "2014-12-23 17:25:34.728897"]]
36989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36990
+  (0.0ms) SAVEPOINT active_record_1
36991
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.730493"], ["updated_at", "2014-12-23 17:25:34.730493"]]
36992
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
36993
+ 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
36994
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.732201"], ["updated_at", "2014-12-23 17:25:34.732201"]]
36995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36996
+  (0.0ms) SAVEPOINT active_record_1
36997
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
36998
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.734870"], ["updated_at", "2014-12-23 17:25:34.734870"]]
36999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37000
+  (0.0ms) SAVEPOINT active_record_1
37001
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.735886') LIMIT 1
37002
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", "2014-12-23 17:25:34.735886"], ["editor_id", 12], ["editor_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.737144"], ["id", 5]]
37003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37004
+ Processing by Commontator::CommentsController#undelete as HTML
37005
+ Parameters: {"id"=>"5"}
37006
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37007
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37008
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37009
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37010
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37011
+ 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", 11]]
37012
+  (0.1ms) SAVEPOINT active_record_1
37013
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37014
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", nil], ["updated_at", "2014-12-23 17:25:34.743544"], ["id", 5]]
37015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37016
+ Redirected to http://test.host/commontator/threads/11
37017
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
37018
+  (0.0ms) SAVEPOINT active_record_1
37019
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.748182"], ["updated_at", "2014-12-23 17:25:34.748182"]]
37020
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37021
+  (0.0ms) SAVEPOINT active_record_1
37022
+ 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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37023
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:34.750378"], ["updated_at", "2014-12-23 17:25:34.750378"]]
37024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37025
+  (0.0ms) SAVEPOINT active_record_1
37026
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.751257') LIMIT 1
37027
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", "2014-12-23 17:25:34.751257"], ["updated_at", "2014-12-23 17:25:34.752416"], ["id", 5]]
37028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37029
+ Processing by Commontator::CommentsController#undelete as HTML
37030
+ Parameters: {"id"=>"5"}
37031
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37032
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37033
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37034
+  (0.0ms) SAVEPOINT active_record_1
37035
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37036
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", nil], ["editor_id", 13], ["updated_at", "2014-12-23 17:25:34.756214"], ["id", 5]]
37037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37038
+ Redirected to http://test.host/commontator/threads/11
37039
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
37040
+  (0.0ms) SAVEPOINT active_record_1
37041
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.759608') LIMIT 1
37042
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", "2014-12-23 17:25:34.759608"], ["editor_id", 12], ["updated_at", "2014-12-23 17:25:34.760900"], ["id", 5]]
37043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37044
+ Processing by Commontator::CommentsController#undelete as HTML
37045
+ Parameters: {"id"=>"5"}
37046
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37047
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37048
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37049
+  (0.0ms) SAVEPOINT active_record_1
37050
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 5 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37051
+ SQL (0.0ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ? [["deleted_at", nil], ["editor_id", 13], ["updated_at", "2014-12-23 17:25:34.764451"], ["id", 5]]
37052
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37053
+ Redirected to http://test.host/commontator/threads/11
37054
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
37055
+  (0.6ms) rollback transaction
37056
+  (0.1ms) begin transaction
37057
+ -------------------------------------------------------------------------
37058
+ Commontator::CommentsController: test_0014_won't upvote unless authorized
37059
+ -------------------------------------------------------------------------
37060
+  (0.1ms) SAVEPOINT active_record_1
37061
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.770426"], ["updated_at", "2014-12-23 17:25:34.770426"]]
37062
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37063
+  (0.0ms) SAVEPOINT active_record_1
37064
+ SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.773307"], ["updated_at", "2014-12-23 17:25:34.773307"]]
37065
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37066
+ 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
37067
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.776222"], ["updated_at", "2014-12-23 17:25:34.776222"]]
37068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37069
+  (0.0ms) SAVEPOINT active_record_1
37070
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37071
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.779335"], ["updated_at", "2014-12-23 17:25:34.779335"]]
37072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37073
+ Processing by Commontator::CommentsController#upvote as HTML
37074
+ Parameters: {"id"=>"5"}
37075
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
37076
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37077
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37078
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
37079
+ Processing by Commontator::CommentsController#upvote as HTML
37080
+ Parameters: {"id"=>"5"}
37081
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37082
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37083
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37084
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37085
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
37086
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37087
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37088
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37089
+  (0.0ms) SAVEPOINT active_record_1
37090
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.790008"], ["updated_at", "2014-12-23 17:25:34.790008"]]
37091
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37092
+ Processing by Commontator::CommentsController#upvote as HTML
37093
+ Parameters: {"id"=>"5"}
37094
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37095
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37096
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37097
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37098
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
37099
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37100
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37101
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37102
+  (0.5ms) rollback transaction
37103
+  (0.0ms) begin transaction
37104
+ --------------------------------------------------------------------
37105
+ Commontator::CommentsController: test_0015_must upvote if authorized
37106
+ --------------------------------------------------------------------
37107
+  (0.0ms) SAVEPOINT active_record_1
37108
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.795995"], ["updated_at", "2014-12-23 17:25:34.795995"]]
37109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37110
+  (0.0ms) SAVEPOINT active_record_1
37111
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.797573"], ["updated_at", "2014-12-23 17:25:34.797573"]]
37112
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37113
+ 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
37114
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.799303"], ["updated_at", "2014-12-23 17:25:34.799303"]]
37115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37116
+  (0.0ms) SAVEPOINT active_record_1
37117
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37118
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.801665"], ["updated_at", "2014-12-23 17:25:34.801665"]]
37119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37120
+  (0.0ms) SAVEPOINT active_record_1
37121
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.802805"], ["updated_at", "2014-12-23 17:25:34.802805"]]
37122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37123
+ Processing by Commontator::CommentsController#upvote as HTML
37124
+ Parameters: {"id"=>"5"}
37125
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37126
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37127
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37128
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37129
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37130
+  (0.0ms) SAVEPOINT active_record_1
37131
+ SQL (0.1ms) INSERT INTO "votes" ("votable_id", "votable_type", "voter_id", "voter_type", "vote_flag", "vote_weight", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"], ["vote_flag", "t"], ["vote_weight", 1], ["created_at", "2014-12-23 17:25:34.811685"], ["updated_at", "2014-12-23 17:25:34.811685"]]
37132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37133
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37134
+ SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
37135
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37136
+ SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37137
+ Redirected to http://test.host/commontator/threads/11
37138
+ Completed 302 Found in 12ms (ActiveRecord: 0.7ms)
37139
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37140
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37141
+ Processing by Commontator::CommentsController#upvote as HTML
37142
+ Parameters: {"id"=>"5"}
37143
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37144
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37145
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37146
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37147
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37148
+ ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37149
+  (0.0ms) SAVEPOINT active_record_1
37150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37151
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37152
+ SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
37153
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
37154
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37155
+ Redirected to http://test.host/commontator/threads/11
37156
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
37157
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37158
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37159
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37160
+ ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37161
+  (0.0ms) SAVEPOINT active_record_1
37162
+ SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = ? [["vote_flag", "f"], ["updated_at", "2014-12-23 17:25:34.833274"], ["id", 1]]
37163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37164
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37165
+ SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37166
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37167
+ SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
37168
+ Processing by Commontator::CommentsController#upvote as HTML
37169
+ Parameters: {"id"=>"5"}
37170
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37171
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37172
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37173
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37174
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37175
+ ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37176
+  (0.0ms) SAVEPOINT active_record_1
37177
+ SQL (0.0ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = ? [["vote_flag", "t"], ["updated_at", "2014-12-23 17:25:34.839456"], ["id", 1]]
37178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37179
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37180
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
37181
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37182
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37183
+ Redirected to http://test.host/commontator/threads/11
37184
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
37185
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37186
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37187
+  (0.6ms) rollback transaction
37188
+  (0.1ms) begin transaction
37189
+ ---------------------------------------------------------------------------
37190
+ Commontator::CommentsController: test_0016_won't downvote unless authorized
37191
+ ---------------------------------------------------------------------------
37192
+  (0.1ms) SAVEPOINT active_record_1
37193
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.848758"], ["updated_at", "2014-12-23 17:25:34.848758"]]
37194
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37195
+  (0.0ms) SAVEPOINT active_record_1
37196
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.851696"], ["updated_at", "2014-12-23 17:25:34.851696"]]
37197
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37198
+ 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
37199
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.854436"], ["updated_at", "2014-12-23 17:25:34.854436"]]
37200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37201
+  (0.0ms) SAVEPOINT active_record_1
37202
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37203
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.857561"], ["updated_at", "2014-12-23 17:25:34.857561"]]
37204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37205
+ Processing by Commontator::CommentsController#downvote as HTML
37206
+ Parameters: {"id"=>"5"}
37207
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
37208
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37209
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37210
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37211
+ Processing by Commontator::CommentsController#downvote as HTML
37212
+ Parameters: {"id"=>"5"}
37213
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37214
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37215
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37216
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37217
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
37218
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37219
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37220
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37221
+  (0.0ms) SAVEPOINT active_record_1
37222
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.865544"], ["updated_at", "2014-12-23 17:25:34.865544"]]
37223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37224
+ Processing by Commontator::CommentsController#downvote as HTML
37225
+ Parameters: {"id"=>"5"}
37226
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37227
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37228
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37229
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37230
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
37231
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37232
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37233
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37234
+  (0.6ms) rollback transaction
37235
+  (0.1ms) begin transaction
37236
+ ----------------------------------------------------------------------
37237
+ Commontator::CommentsController: test_0017_must downvote if authorized
37238
+ ----------------------------------------------------------------------
37239
+  (0.2ms) SAVEPOINT active_record_1
37240
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.872616"], ["updated_at", "2014-12-23 17:25:34.872616"]]
37241
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37242
+  (0.0ms) SAVEPOINT active_record_1
37243
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.875322"], ["updated_at", "2014-12-23 17:25:34.875322"]]
37244
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37245
+ 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
37246
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.877962"], ["updated_at", "2014-12-23 17:25:34.877962"]]
37247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37248
+  (0.0ms) SAVEPOINT active_record_1
37249
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37250
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.881010"], ["updated_at", "2014-12-23 17:25:34.881010"]]
37251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37252
+  (0.0ms) SAVEPOINT active_record_1
37253
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.882392"], ["updated_at", "2014-12-23 17:25:34.882392"]]
37254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37255
+ Processing by Commontator::CommentsController#downvote as HTML
37256
+ Parameters: {"id"=>"5"}
37257
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37258
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37259
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37260
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37261
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37262
+  (0.0ms) SAVEPOINT active_record_1
37263
+ SQL (0.1ms) INSERT INTO "votes" ("votable_id", "votable_type", "voter_id", "voter_type", "vote_flag", "vote_weight", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"], ["vote_flag", "f"], ["vote_weight", 1], ["created_at", "2014-12-23 17:25:34.888256"], ["updated_at", "2014-12-23 17:25:34.888256"]]
37264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37265
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37266
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37267
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
37268
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
37269
+ Redirected to http://test.host/commontator/threads/11
37270
+ Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
37271
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37272
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37273
+ Processing by Commontator::CommentsController#downvote as HTML
37274
+ Parameters: {"id"=>"5"}
37275
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37276
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37277
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37278
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37279
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37280
+ ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37281
+  (0.0ms) SAVEPOINT active_record_1
37282
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37283
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37284
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37285
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37286
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
37287
+ Redirected to http://test.host/commontator/threads/11
37288
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
37289
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37290
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37291
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37292
+ ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37293
+  (0.0ms) SAVEPOINT active_record_1
37294
+ SQL (0.0ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = ? [["vote_flag", "t"], ["updated_at", "2014-12-23 17:25:34.914847"], ["id", 1]]
37295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37296
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37297
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
37298
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37299
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37300
+ Processing by Commontator::CommentsController#downvote as HTML
37301
+ Parameters: {"id"=>"5"}
37302
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37303
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37304
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37305
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37306
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37307
+ ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL ORDER BY "votes"."id" DESC LIMIT 1 [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37308
+  (0.1ms) SAVEPOINT active_record_1
37309
+ SQL (0.0ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = ? [["vote_flag", "f"], ["updated_at", "2014-12-23 17:25:34.922120"], ["id", 1]]
37310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37311
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37312
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37313
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37314
+ SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
37315
+ Redirected to http://test.host/commontator/threads/11
37316
+ Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
37317
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37318
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37319
+  (0.5ms) rollback transaction
37320
+  (0.0ms) begin transaction
37321
+ -------------------------------------------------------------------------
37322
+ Commontator::CommentsController: test_0018_won't unvote unless authorized
37323
+ -------------------------------------------------------------------------
37324
+  (0.1ms) SAVEPOINT active_record_1
37325
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.932228"], ["updated_at", "2014-12-23 17:25:34.932228"]]
37326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37327
+  (0.0ms) SAVEPOINT active_record_1
37328
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.937442"], ["updated_at", "2014-12-23 17:25:34.937442"]]
37329
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37330
+ 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
37331
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.941174"], ["updated_at", "2014-12-23 17:25:34.941174"]]
37332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37333
+  (0.0ms) SAVEPOINT active_record_1
37334
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37335
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.944067"], ["updated_at", "2014-12-23 17:25:34.944067"]]
37336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37337
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 12], ["voter_type", "DummyUser"]]
37338
+  (0.0ms) SAVEPOINT active_record_1
37339
+ SQL (0.1ms) INSERT INTO "votes" ("votable_id", "votable_type", "voter_id", "voter_type", "vote_flag", "vote_weight", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 12], ["voter_type", "DummyUser"], ["vote_flag", "t"], ["vote_weight", 1], ["created_at", "2014-12-23 17:25:34.947019"], ["updated_at", "2014-12-23 17:25:34.947019"]]
37340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37341
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37342
+ SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
37343
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37344
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37345
+ Processing by Commontator::CommentsController#unvote as HTML
37346
+ Parameters: {"id"=>"5"}
37347
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.0ms)
37348
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37349
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37350
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37351
+ Processing by Commontator::CommentsController#unvote as HTML
37352
+ Parameters: {"id"=>"5"}
37353
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37354
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37355
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37356
+ DummyUser Load (2.6ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37357
+ Completed 403 Forbidden in 4ms (ActiveRecord: 2.6ms)
37358
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37359
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37360
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37361
+  (0.0ms) SAVEPOINT active_record_1
37362
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.963700"], ["updated_at", "2014-12-23 17:25:34.963700"]]
37363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37364
+ Processing by Commontator::CommentsController#unvote as HTML
37365
+ Parameters: {"id"=>"5"}
37366
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37367
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37368
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37369
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37370
+ Completed 403 Forbidden in 7ms (ActiveRecord: 0.2ms)
37371
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37372
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37373
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37374
+  (0.5ms) rollback transaction
37375
+  (0.0ms) begin transaction
37376
+ --------------------------------------------------------------------
37377
+ Commontator::CommentsController: test_0019_must unvote if authorized
37378
+ --------------------------------------------------------------------
37379
+  (0.0ms) SAVEPOINT active_record_1
37380
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.976702"], ["updated_at", "2014-12-23 17:25:34.976702"]]
37381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37382
+  (0.0ms) SAVEPOINT active_record_1
37383
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.978902"], ["updated_at", "2014-12-23 17:25:34.978902"]]
37384
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37385
+ 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
37386
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:34.980791"], ["updated_at", "2014-12-23 17:25:34.980791"]]
37387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37388
+  (0.0ms) SAVEPOINT active_record_1
37389
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37390
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:34.983291"], ["updated_at", "2014-12-23 17:25:34.983291"]]
37391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37392
+  (0.0ms) SAVEPOINT active_record_1
37393
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:34.984469"], ["updated_at", "2014-12-23 17:25:34.984469"]]
37394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37395
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37396
+  (0.0ms) SAVEPOINT active_record_1
37397
+ SQL (0.1ms) INSERT INTO "votes" ("votable_id", "votable_type", "voter_id", "voter_type", "vote_flag", "vote_weight", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"], ["vote_flag", "t"], ["vote_weight", 1], ["created_at", "2014-12-23 17:25:34.987185"], ["updated_at", "2014-12-23 17:25:34.987185"]]
37398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37399
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37400
+ SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
37401
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37402
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37403
+ Processing by Commontator::CommentsController#unvote as HTML
37404
+ Parameters: {"id"=>"5"}
37405
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37406
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37407
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37408
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37409
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37410
+ ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37411
+  (0.0ms) SAVEPOINT active_record_1
37412
+ SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]
37413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37414
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37415
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37416
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37417
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37418
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
37419
+ Redirected to http://test.host/commontator/threads/11
37420
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
37421
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37422
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37423
+ Processing by Commontator::CommentsController#unvote as HTML
37424
+ Parameters: {"id"=>"5"}
37425
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37426
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37427
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37428
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37429
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37430
+ Redirected to http://test.host/commontator/threads/11
37431
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
37432
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37433
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37434
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37435
+  (0.0ms) SAVEPOINT active_record_1
37436
+ SQL (0.1ms) INSERT INTO "votes" ("votable_id", "votable_type", "voter_id", "voter_type", "vote_flag", "vote_weight", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"], ["vote_flag", "f"], ["vote_weight", 1], ["created_at", "2014-12-23 17:25:35.008481"], ["updated_at", "2014-12-23 17:25:35.008481"]]
37437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37438
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37439
+ SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37440
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37441
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
37442
+ Processing by Commontator::CommentsController#unvote as HTML
37443
+ Parameters: {"id"=>"5"}
37444
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
37445
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37446
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37447
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
37448
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37449
+ ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = ? AND "votes"."voter_type" = ? AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
37450
+  (0.0ms) SAVEPOINT active_record_1
37451
+ SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]
37452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37453
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37454
+ SQL (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37455
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37456
+ SQL (0.0ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
37457
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
37458
+ Redirected to http://test.host/commontator/threads/11
37459
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
37460
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37461
+  (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", 5], ["votable_type", "Commontator::Comment"]]
37462
+  (0.5ms) rollback transaction
37463
+  (0.0ms) begin transaction
37464
+ ------------------------------------------------------------------------------
37465
+ Commontator::CommentsController: test_0020_won't send mail if recipients empty
37466
+ ------------------------------------------------------------------------------
37467
+  (0.0ms) SAVEPOINT active_record_1
37468
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:35.024429"], ["updated_at", "2014-12-23 17:25:35.024429"]]
37469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37470
+  (0.0ms) SAVEPOINT active_record_1
37471
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:35.026205"], ["updated_at", "2014-12-23 17:25:35.026205"]]
37472
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37473
+ 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
37474
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:35.028080"], ["updated_at", "2014-12-23 17:25:35.028080"]]
37475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37476
+  (0.0ms) SAVEPOINT active_record_1
37477
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37478
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:35.030377"], ["updated_at", "2014-12-23 17:25:35.030377"]]
37479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37480
+  (0.0ms) SAVEPOINT active_record_1
37481
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:35.031591"], ["updated_at", "2014-12-23 17:25:35.031591"]]
37482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37483
+ Processing by Commontator::CommentsController#create as HTML
37484
+ Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
37485
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37486
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37487
+  (0.0ms) SAVEPOINT active_record_1
37488
+ 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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37489
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:35.036187"], ["updated_at", "2014-12-23 17:25:35.036187"]]
37490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37491
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 11]]
37492
+ Redirected to http://test.host/commontator/threads/11
37493
+ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
37494
+  (0.6ms) rollback transaction
37495
+  (0.1ms) begin transaction
37496
+ ---------------------------------------------------------------------------------
37497
+ Commontator::CommentsController: test_0021_must send mail if recipients not empty
37498
+ ---------------------------------------------------------------------------------
37499
+  (0.1ms) SAVEPOINT active_record_1
37500
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:35.042721"], ["updated_at", "2014-12-23 17:25:35.042721"]]
37501
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37502
+  (0.0ms) SAVEPOINT active_record_1
37503
+ SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:35.045604"], ["updated_at", "2014-12-23 17:25:35.045604"]]
37504
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37505
+ 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
37506
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_type", "DummyModel"], ["commontable_id", 10], ["created_at", "2014-12-23 17:25:35.048312"], ["updated_at", "2014-12-23 17:25:35.048312"]]
37507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37508
+  (0.0ms) SAVEPOINT active_record_1
37509
+ Commontator::Comment Exists (0.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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37510
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something"], ["created_at", "2014-12-23 17:25:35.051336"], ["updated_at", "2014-12-23 17:25:35.051336"]]
37511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37512
+  (0.1ms) SAVEPOINT active_record_1
37513
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-23 17:25:35.052718"], ["updated_at", "2014-12-23 17:25:35.052718"]]
37514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37515
+ 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" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 11]]
37516
+  (0.0ms) SAVEPOINT active_record_1
37517
+ 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
37518
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["created_at", "2014-12-23 17:25:35.055524"], ["updated_at", "2014-12-23 17:25:35.055524"]]
37519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37520
+ Processing by Commontator::CommentsController#create as HTML
37521
+ Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
37522
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
37523
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
37524
+  (0.0ms) SAVEPOINT active_record_1
37525
+ 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" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
37526
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["thread_id", 11], ["creator_id", 12], ["creator_type", "DummyUser"], ["body", "Something else"], ["created_at", "2014-12-23 17:25:35.060326"], ["updated_at", "2014-12-23 17:25:35.060326"]]
37527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37528
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 11]]
37529
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 13]]
37530
+ Redirected to http://test.host/commontator/threads/11
37531
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
37532
+  (0.5ms) rollback transaction