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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5769fedf79be8ffdc8da8e46ee0bae3ea7184dd
|
4
|
+
data.tar.gz: 063c91fb45c1198cbc126dc57df8abddeca24e5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ed90da6359724bf48775cff080e1b25e70815d17666fd2a4aed830d25b6f385f41393f041ba92d323b3e5461afee48a34ff415d2b86800f90f88e610932cd9e
|
7
|
+
data.tar.gz: 4296f6861354db8f0f83f0966a75475d40ab891688ff1544644d4919efa3d3849c85d5552b07439eebe7c23eeef0a06ff87cc6674adbdde5f7c75df2fe1ad8f9
|
data/lib/commontator/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -35458,3 +35458,2075 @@ Commontator::Subscription: test_0001_must count unread comments
|
|
35458
35458
|
[1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1[0m [["commontable_id", 10], ["commontable_type", "DummyModel"]]
|
35459
35459
|
[1m[35m (0.1ms)[0m 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
|
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35461
|
+
[1m[36m (1.7ms)[0m [1mCREATE 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) [0m
|
35462
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
35463
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
35464
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
35473
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
35489
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_commontator_comments_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
35490
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
35498
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
35514
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id_and_created_at" ON "commontator_comments" ("thread_id", "created_at")
|
35515
|
+
[1m[36m (0.8ms)[0m [1mCREATE 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) [0m
|
35516
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_commontator_subscriptions_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
35517
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
35525
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")
|
35526
|
+
[1m[36m (0.7ms)[0m [1mCREATE 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) [0m
|
35527
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_c_id_and_c_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
35528
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
35529
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
35530
|
+
[1m[36m (0.8ms)[0m [1mCREATE 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) [0m
|
35531
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")
|
35532
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
35540
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")
|
35541
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
35542
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
35543
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
35544
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3')
|
35545
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m
|
35546
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2')
|
35547
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
35548
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35549
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35550
|
+
---------------------------------------------------------------------------------
|
35551
|
+
Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized
|
35552
|
+
---------------------------------------------------------------------------------
|
35553
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35554
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35556
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35557
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:33.673375"], ["updated_at", "2014-12-23 17:25:33.673375"]]
|
35558
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35559
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35560
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35562
|
+
Processing by Commontator::SubscriptionsController#subscribe as HTML
|
35563
|
+
Parameters: {"thread_id"=>"1"}
|
35564
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
35565
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35569
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35570
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
35571
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35572
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35573
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35574
|
+
[1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) LIMIT 1
|
35575
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35577
|
+
Processing by Commontator::SubscriptionsController#subscribe as HTML
|
35578
|
+
Parameters: {"thread_id"=>"1"}
|
35579
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35580
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35581
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["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
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
35585
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35586
|
+
----------------------------------------------------------------------------
|
35587
|
+
Commontator::SubscriptionsController: test_0002_must subscribe if authorized
|
35588
|
+
----------------------------------------------------------------------------
|
35589
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35590
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:33.711789"], ["updated_at", "2014-12-23 17:25:33.711789"]]
|
35591
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35592
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35593
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35595
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
35596
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35598
|
+
Processing by Commontator::SubscriptionsController#subscribe as HTML
|
35599
|
+
Parameters: {"thread_id"=>"1"}
|
35600
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35601
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35602
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35603
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35604
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) LIMIT 1[0m
|
35605
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35607
|
+
Redirected to http://test.host/commontator/threads/1
|
35608
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
|
35609
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m 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
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "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[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35611
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35612
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]]
|
35613
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35614
|
+
Processing by Commontator::SubscriptionsController#subscribe as HTML
|
35615
|
+
Parameters: {"thread_id"=>"1"}
|
35616
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35617
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35618
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35619
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35620
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) LIMIT 1[0m
|
35621
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35623
|
+
Redirected to http://test.host/commontator/threads/1
|
35624
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
|
35625
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m 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
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35627
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35628
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 2]]
|
35629
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35630
|
+
Processing by Commontator::SubscriptionsController#subscribe as HTML
|
35631
|
+
Parameters: {"thread_id"=>"1"}
|
35632
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35633
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35634
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35635
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35636
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) LIMIT 1[0m
|
35637
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35639
|
+
Redirected to http://test.host/commontator/threads/1
|
35640
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
|
35641
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35642
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35643
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35644
|
+
-----------------------------------------------------------------------------------
|
35645
|
+
Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized
|
35646
|
+
-----------------------------------------------------------------------------------
|
35647
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35648
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35650
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35651
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:33.752930"], ["updated_at", "2014-12-23 17:25:33.752930"]]
|
35652
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35653
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35654
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35656
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35657
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35658
|
+
[1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) LIMIT 1
|
35659
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35665
|
+
Processing by Commontator::SubscriptionsController#unsubscribe as HTML
|
35666
|
+
Parameters: {"thread_id"=>"1"}
|
35667
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35668
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35669
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
35670
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35671
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35672
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35673
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]]
|
35674
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35675
|
+
Processing by Commontator::SubscriptionsController#unsubscribe as HTML
|
35676
|
+
Parameters: {"thread_id"=>"1"}
|
35677
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35678
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35679
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["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
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
35683
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35684
|
+
------------------------------------------------------------------------------
|
35685
|
+
Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized
|
35686
|
+
------------------------------------------------------------------------------
|
35687
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35688
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:33.772339"], ["updated_at", "2014-12-23 17:25:33.772339"]]
|
35689
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35690
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35691
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35693
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
35694
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35696
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35697
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35698
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) LIMIT 1[0m
|
35699
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35701
|
+
Processing by Commontator::SubscriptionsController#unsubscribe as HTML
|
35702
|
+
Parameters: {"thread_id"=>"1"}
|
35703
|
+
[1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35704
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35705
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35707
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]
|
35708
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35709
|
+
Redirected to http://test.host/commontator/threads/1
|
35710
|
+
Completed 302 Found in 11ms (ActiveRecord: 0.4ms)
|
35711
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35712
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35713
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35714
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) LIMIT 1[0m
|
35715
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35717
|
+
Processing by Commontator::SubscriptionsController#unsubscribe as HTML
|
35718
|
+
Parameters: {"thread_id"=>"1"}
|
35719
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35720
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35721
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35722
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35723
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]
|
35724
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35725
|
+
Redirected to http://test.host/commontator/threads/1
|
35726
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
|
35727
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35728
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35729
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35730
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 1) LIMIT 1[0m
|
35731
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35733
|
+
Processing by Commontator::SubscriptionsController#unsubscribe as HTML
|
35734
|
+
Parameters: {"thread_id"=>"1"}
|
35735
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35736
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35737
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35738
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35739
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]
|
35740
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35741
|
+
Redirected to http://test.host/commontator/threads/1
|
35742
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
|
35743
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 1], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
35744
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
35745
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35746
|
+
--------------------------------------------------------------------
|
35747
|
+
Commontator::ApplicationHelper: test_0001_must print javascript proc
|
35748
|
+
--------------------------------------------------------------------
|
35749
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35750
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35751
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:33.819351"], ["updated_at", "2014-12-23 17:25:33.819351"]]
|
35752
|
+
[1m[35m (0.8ms)[0m commit transaction
|
35753
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35754
|
+
----------------------------------------------------------------------
|
35755
|
+
Commontator::ThreadsController: test_0001_won't show unless authorized
|
35756
|
+
----------------------------------------------------------------------
|
35757
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35758
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:33.823975"], ["updated_at", "2014-12-23 17:25:33.823975"]]
|
35759
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35760
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35761
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35763
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
35764
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35766
|
+
Processing by Commontator::ThreadsController#show as HTML
|
35767
|
+
Parameters: {"id"=>"1"}
|
35768
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35769
|
+
[1m[35mDummyModel Load (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35774
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35775
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
35776
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35777
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35778
|
+
-----------------------------------------------------------------
|
35779
|
+
Commontator::ThreadsController: test_0002_must show if authorized
|
35780
|
+
-----------------------------------------------------------------
|
35781
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35782
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35784
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35785
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:33.838248"], ["updated_at", "2014-12-23 17:25:33.838248"]]
|
35786
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35787
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35788
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35790
|
+
Processing by Commontator::ThreadsController#show as HTML
|
35791
|
+
Parameters: {"id"=>"1"}
|
35792
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35793
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35794
|
+
[1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 1], ["commontable_type", "DummyModel"]]
|
35795
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35796
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35802
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35803
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1[0m [["commontable_id", 1], ["commontable_type", "DummyModel"]]
|
35804
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35805
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["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
|
+
[1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35811
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35812
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 1], ["commontable_type", "DummyModel"]]
|
35813
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35814
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35818
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35819
|
+
--------------------------------------------------------------------------------
|
35820
|
+
Commontator::ThreadsController: test_0003_won't close unless authorized and open
|
35821
|
+
--------------------------------------------------------------------------------
|
35822
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35823
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35825
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35826
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:33.865824"], ["updated_at", "2014-12-23 17:25:33.865824"]]
|
35827
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35828
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35829
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35831
|
+
Processing by Commontator::ThreadsController#close as HTML
|
35832
|
+
Parameters: {"id"=>"1"}
|
35833
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
35834
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35838
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35839
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
35840
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35841
|
+
Processing by Commontator::ThreadsController#close as HTML
|
35842
|
+
Parameters: {"id"=>"1"}
|
35843
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35844
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35845
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
35846
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35847
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35848
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
35849
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ?[0m [["closed_at", "2014-12-23 17:25:33.873346"], ["updated_at", "2014-12-23 17:25:33.874809"], ["id", 1]]
|
35850
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35851
|
+
Processing by Commontator::ThreadsController#close as HTML
|
35852
|
+
Parameters: {"id"=>"1"}
|
35853
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35854
|
+
[1m[35mDummyModel Load (0.0ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
35858
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35859
|
+
---------------------------------------------------------------------------
|
35860
|
+
Commontator::ThreadsController: test_0004_must close if authorized and open
|
35861
|
+
---------------------------------------------------------------------------
|
35862
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35863
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35865
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35866
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:33.884692"], ["updated_at", "2014-12-23 17:25:33.884692"]]
|
35867
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35868
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35869
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35871
|
+
Processing by Commontator::ThreadsController#close as HTML
|
35872
|
+
Parameters: {"id"=>"1"}
|
35873
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35874
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35875
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35876
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35877
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35879
|
+
Redirected to http://test.host/commontator/threads/1
|
35880
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
|
35881
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35882
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35883
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35885
|
+
Processing by Commontator::ThreadsController#close as HTML
|
35886
|
+
Parameters: {"id"=>"1"}
|
35887
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35888
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35889
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35890
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35891
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35893
|
+
Redirected to http://test.host/commontator/threads/1
|
35894
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
35895
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
35896
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35897
|
+
-----------------------------------------------------------------------------------
|
35898
|
+
Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed
|
35899
|
+
-----------------------------------------------------------------------------------
|
35900
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35901
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:33.908000"], ["updated_at", "2014-12-23 17:25:33.908000"]]
|
35902
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35903
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35904
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35906
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
35907
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35909
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35910
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
35911
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ?[0m [["closed_at", "2014-12-23 17:25:33.916446"], ["updated_at", "2014-12-23 17:25:33.917470"], ["id", 1]]
|
35912
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35917
|
+
Processing by Commontator::ThreadsController#reopen as HTML
|
35918
|
+
Parameters: {"id"=>"1"}
|
35919
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35920
|
+
[1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35921
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
35922
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35926
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35927
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
35928
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35929
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35930
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35931
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
35932
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ?[0m [["closed_at", nil], ["updated_at", "2014-12-23 17:25:33.924196"], ["id", 1]]
|
35933
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35934
|
+
Processing by Commontator::ThreadsController#reopen as HTML
|
35935
|
+
Parameters: {"id"=>"1"}
|
35936
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 1]]
|
35937
|
+
[1m[35mDummyModel Load (0.1ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35941
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35942
|
+
------------------------------------------------------------------------------
|
35943
|
+
Commontator::ThreadsController: test_0006_must reopen if authorized and closed
|
35944
|
+
------------------------------------------------------------------------------
|
35945
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35946
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35948
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35949
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:33.933478"], ["updated_at", "2014-12-23 17:25:33.933478"]]
|
35950
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
35951
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35952
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35954
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35955
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35956
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35958
|
+
Processing by Commontator::ThreadsController#reopen as HTML
|
35959
|
+
Parameters: {"id"=>"1"}
|
35960
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35961
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35962
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35963
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35964
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35966
|
+
Redirected to http://test.host/commontator/threads/1
|
35967
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
|
35968
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35969
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35970
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35972
|
+
Processing by Commontator::ThreadsController#reopen as HTML
|
35973
|
+
Parameters: {"id"=>"1"}
|
35974
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 1]]
|
35975
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35976
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35977
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."id" != 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
35978
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35980
|
+
Redirected to http://test.host/commontator/threads/1
|
35981
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
|
35982
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
35983
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35984
|
+
------------------------------------------------------------------------
|
35985
|
+
Commontator::SubscriptionsMailer: test_0001_must create deliverable mail
|
35986
|
+
------------------------------------------------------------------------
|
35987
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35988
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.093852"], ["updated_at", "2014-12-23 17:25:34.093852"]]
|
35989
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35990
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35991
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 1]]
|
35993
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
35994
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35996
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35997
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35999
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
36000
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36001
|
+
[1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
|
36002
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36004
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 1]]
|
36005
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36006
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 1 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m
|
36007
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36009
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36010
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 1 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36011
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36013
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 1]]
|
36014
|
+
[1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 2]]
|
36015
|
+
[1m[35mDummyUser Load (0.0ms)[0m 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
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
36041
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36042
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.152353"], ["updated_at", "2014-12-23 17:25:34.152353"]]
|
36043
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 1]]
|
36044
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36045
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
36047
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36048
|
+
---------------------------------------------------------------
|
36049
|
+
Commontator::Subscription: test_0001_must count unread comments
|
36050
|
+
---------------------------------------------------------------
|
36051
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36052
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36054
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36055
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.161882"], ["updated_at", "2014-12-23 17:25:34.161882"]]
|
36056
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
|
36057
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36058
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36060
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36061
|
+
[1m[36mCommontator::Subscription Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m
|
36062
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36064
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36066
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36067
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36069
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
|
36070
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
|
36071
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]]
|
36072
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36074
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36075
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36077
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1[0m [["id", 1]]
|
36078
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
|
36079
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]]
|
36080
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36082
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "updated_at" = '2014-12-23 17:25:34.177364' WHERE "commontator_subscriptions"."id" = ? [["id", 1]]
|
36083
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36084
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
|
36085
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]]
|
36086
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
|
36087
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 17:25:34.177364')[0m [["thread_id", 2]]
|
36088
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
36089
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36090
|
+
-----------------------------------------------------------------
|
36091
|
+
Commontator::SharedHelper: test_0001_must show commontator thread
|
36092
|
+
-----------------------------------------------------------------
|
36093
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36094
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.188218"], ["updated_at", "2014-12-23 17:25:34.188218"]]
|
36095
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
|
36096
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36097
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36099
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
36102
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36103
|
+
-------------------------------------------------------------------------------
|
36104
|
+
Commontator::Comment: test_0001_must be votable if acts_as_votable is installed
|
36105
|
+
-------------------------------------------------------------------------------
|
36106
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36107
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36109
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36110
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.211342"], ["updated_at", "2014-12-23 17:25:34.211342"]]
|
36111
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
|
36112
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36113
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36115
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
36116
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36117
|
+
-----------------------------------------------------------------
|
36118
|
+
Commontator::Comment: test_0002_must know if it has been modified
|
36119
|
+
-----------------------------------------------------------------
|
36120
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36121
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.218900"], ["updated_at", "2014-12-23 17:25:34.218900"]]
|
36122
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36123
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36124
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]]
|
36126
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
36127
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36129
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36130
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36131
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36133
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36134
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36135
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.231487"], ["id", 1]]
|
36136
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36137
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
36138
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36139
|
+
----------------------------------------------------------------
|
36140
|
+
Commontator::Comment: test_0003_must know if it has been deleted
|
36141
|
+
----------------------------------------------------------------
|
36142
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36143
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36145
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36146
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.236966"], ["updated_at", "2014-12-23 17:25:34.236966"]]
|
36147
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
|
36148
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36149
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36151
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36152
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" = '2014-12-23 17:25:34.241196') LIMIT 1[0m
|
36153
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "deleted_at", "editor_type", "editor_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36156
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36157
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = '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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["deleted_at", nil], ["updated_at", "2014-12-23 17:25:34.246155"], ["id", 1]]
|
36159
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36160
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
36161
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36162
|
+
-----------------------------------------------------------
|
36163
|
+
Commontator::Comment: test_0004_must make proper timestamps
|
36164
|
+
-----------------------------------------------------------
|
36165
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36166
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36168
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36169
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.250435"], ["updated_at", "2014-12-23 17:25:34.250435"]]
|
36170
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]]
|
36171
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36172
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36174
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36175
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36176
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36178
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36179
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.257169"], ["updated_at", "2014-12-23 17:25:34.257169"]]
|
36180
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36181
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36182
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36183
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["body", "Something else"], ["editor_id", 3], ["editor_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.259803"], ["id", 1]]
|
36184
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36185
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
36186
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36187
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.263545"], ["updated_at", "2014-12-23 17:25:34.263545"]]
|
36188
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36189
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36190
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 2]]
|
36192
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
36193
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36195
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "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[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2]]
|
36196
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36197
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m
|
36198
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
36200
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36201
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.274264"], ["updated_at", "2014-12-23 17:25:34.274264"]]
|
36202
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36203
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "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[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2]]
|
36204
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36205
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m
|
36206
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36208
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]]
|
36210
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 2]]
|
36211
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "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[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2]]
|
36212
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
|
36213
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 3]]
|
36214
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36215
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.281611"], ["updated_at", "2014-12-23 17:25:34.281611"]]
|
36216
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36217
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36218
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 3]]
|
36220
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
36221
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36223
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36224
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36225
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36227
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36228
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36229
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36231
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 3]]
|
36232
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY created_at ASC [["thread_id", 3]]
|
36233
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36234
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36236
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36237
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.297442"], ["updated_at", "2014-12-23 17:25:34.297442"]]
|
36238
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]]
|
36239
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36240
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36242
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36243
|
+
[1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", nil]]
|
36244
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
36246
|
+
[1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]
|
36247
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36248
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
36250
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36251
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.306675"], ["updated_at", "2014-12-23 17:25:34.306675"]]
|
36252
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]]
|
36253
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36254
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36256
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36257
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 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[0m
|
36258
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36260
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36261
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 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[0m
|
36262
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
36264
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = ? [["thread_id", 5], ["id", 3]]
|
36265
|
+
[1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 5]]
|
36266
|
+
[1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]]
|
36267
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36268
|
+
[1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]]
|
36269
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ?[0m [["commontable_id", nil], ["commontable_type", nil], ["updated_at", "2014-12-23 17:25:34.319477"], ["id", 5]]
|
36270
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
36271
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", "2014-12-23 17:25:34.320895"], ["updated_at", "2014-12-23 17:25:34.320895"]]
|
36272
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]
|
36273
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
36274
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = ? [["thread_id", 5], ["id", 3]]
|
36275
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 5]]
|
36276
|
+
[1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]]
|
36277
|
+
[1m[36mCommontator::Comment Exists (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = ?[0m [["thread_id", 6], ["id", 3]]
|
36278
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36279
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.324800"], ["updated_at", "2014-12-23 17:25:34.324800"]]
|
36280
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36281
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36282
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 6]]
|
36284
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
36285
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36287
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "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[0m [["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7]]
|
36288
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36289
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 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[0m
|
36290
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36292
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36293
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.333802"], ["updated_at", "2014-12-23 17:25:34.333802"]]
|
36294
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36295
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "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[0m [["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7]]
|
36296
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36297
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 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[0m
|
36298
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
36300
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]
|
36301
|
+
[1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 7]]
|
36302
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 8]]
|
36303
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36304
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
36306
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36307
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.342886"], ["updated_at", "2014-12-23 17:25:34.342886"]]
|
36308
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]]
|
36309
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36310
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36312
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36313
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.346721"], ["updated_at", "2014-12-23 17:25:34.346721"]]
|
36314
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36315
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36316
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 8]]
|
36318
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
36319
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36321
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "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[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9]]
|
36322
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36323
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1[0m
|
36324
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36326
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 9]]
|
36328
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]]
|
36329
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 17:25:34.354086')[0m [["thread_id", 9]]
|
36330
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36331
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 9 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36332
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36334
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 5]]
|
36335
|
+
[1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 9]]
|
36336
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]]
|
36337
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 17:25:34.354086')[0m [["thread_id", 9]]
|
36338
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36340
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_subscriptions" SET "updated_at" = '2014-12-23 17:25:34.363490' WHERE "commontator_subscriptions"."id" = ? [["id", 5]]
|
36341
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
36342
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? LIMIT 1 [["id", 5]]
|
36343
|
+
[1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 9]]
|
36344
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]]
|
36345
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND ("commontator_comments"."created_at" > '2014-12-23 17:25:34.363490')[0m [["thread_id", 9]]
|
36346
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36347
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.366873"], ["updated_at", "2014-12-23 17:25:34.366873"]]
|
36348
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36349
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36350
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 9]]
|
36352
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
36353
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36355
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36356
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ?[0m [["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
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36359
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36360
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ?[0m [["closed_at", nil], ["updated_at", "2014-12-23 17:25:34.375652"], ["id", 10]]
|
36362
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36363
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36364
|
+
--------------------------------------------------------------------------
|
36365
|
+
Commontator::CommentsController: test_0001_won't get new unless authorized
|
36366
|
+
--------------------------------------------------------------------------
|
36367
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36368
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.378880"], ["updated_at", "2014-12-23 17:25:34.378880"]]
|
36369
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36370
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36371
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36373
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
36374
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36377
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36378
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36386
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36387
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
36388
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
36389
|
+
[1m[35m (0.5ms)[0m begin transaction
|
36390
|
+
---------------------------------------------------------------------
|
36391
|
+
Commontator::CommentsController: test_0002_must get new if authorized
|
36392
|
+
---------------------------------------------------------------------
|
36393
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36394
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36396
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36397
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.394329"], ["updated_at", "2014-12-23 17:25:34.394329"]]
|
36398
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36399
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36400
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36403
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36404
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36406
|
+
Processing by Commontator::CommentsController#new as HTML
|
36407
|
+
Parameters: {"thread_id"=>"11"}
|
36408
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36409
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36415
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36421
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36422
|
+
Redirected to http://test.host/commontator/threads/11
|
36423
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
36424
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
36425
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36426
|
+
-------------------------------------------------------------------------
|
36427
|
+
Commontator::CommentsController: test_0003_won't create unless authorized
|
36428
|
+
-------------------------------------------------------------------------
|
36429
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36430
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.414661"], ["updated_at", "2014-12-23 17:25:34.414661"]]
|
36431
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36432
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36433
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36435
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
36436
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36438
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36439
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36440
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36448
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36449
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
36450
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36451
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = ?[0m [["closed_at", "2014-12-23 17:25:34.427940"], ["updated_at", "2014-12-23 17:25:34.429140"], ["id", 11]]
|
36453
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36454
|
+
Processing by Commontator::CommentsController#create as HTML
|
36455
|
+
Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
|
36456
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36457
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36458
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
36459
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
36460
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36461
|
+
--------------------------------------------------------------------
|
36462
|
+
Commontator::CommentsController: test_0004_must create if authorized
|
36463
|
+
--------------------------------------------------------------------
|
36464
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36465
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36467
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36468
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.434975"], ["updated_at", "2014-12-23 17:25:34.434975"]]
|
36469
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36470
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36471
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36473
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36474
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36475
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36477
|
+
Processing by Commontator::CommentsController#create as HTML
|
36478
|
+
Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
|
36479
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36480
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36481
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36482
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36483
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36485
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36491
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36492
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36493
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36494
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36496
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["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
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36502
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36503
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36504
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36505
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36507
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
36511
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36512
|
+
-------------------------------------------------------------------------
|
36513
|
+
Commontator::CommentsController: test_0005_won't create if double posting
|
36514
|
+
-------------------------------------------------------------------------
|
36515
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36516
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36518
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36519
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.472184"], ["updated_at", "2014-12-23 17:25:34.472184"]]
|
36520
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36521
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36522
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36524
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36525
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36526
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36528
|
+
Processing by Commontator::CommentsController#create as HTML
|
36529
|
+
Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something"}}
|
36530
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36531
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36532
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36533
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36534
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36540
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36541
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36542
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36543
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36545
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["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
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36551
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36552
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36553
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36554
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
36558
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36559
|
+
-----------------------------------------------------------------------
|
36560
|
+
Commontator::CommentsController: test_0006_won't edit unless authorized
|
36561
|
+
-----------------------------------------------------------------------
|
36562
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36563
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36565
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36566
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.506479"], ["updated_at", "2014-12-23 17:25:34.506479"]]
|
36567
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36568
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36569
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36571
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36572
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36573
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36581
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36582
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36583
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
36584
|
+
[1m[35mCommontator::Comment Load (0.2ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 11]]
|
36585
|
+
Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)
|
36586
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36587
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36589
|
+
Processing by Commontator::CommentsController#edit as HTML
|
36590
|
+
Parameters: {"id"=>"5"}
|
36591
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36592
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36593
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36594
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
36595
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
36596
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36597
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36598
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36600
|
+
Processing by Commontator::CommentsController#edit as HTML
|
36601
|
+
Parameters: {"id"=>"5"}
|
36602
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36603
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36604
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36605
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
36606
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 11]]
|
36607
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
36608
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
36609
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36610
|
+
------------------------------------------------------------------
|
36611
|
+
Commontator::CommentsController: test_0007_must edit if authorized
|
36612
|
+
------------------------------------------------------------------
|
36613
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36614
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36616
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36617
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.530791"], ["updated_at", "2014-12-23 17:25:34.530791"]]
|
36618
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36619
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36620
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36622
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36623
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36624
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36626
|
+
Processing by Commontator::CommentsController#edit as HTML
|
36627
|
+
Parameters: {"id"=>"5"}
|
36628
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36629
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36630
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36631
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
36632
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36638
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36639
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36640
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
36641
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 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
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36647
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36648
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36649
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
36650
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 11]]
|
36651
|
+
Redirected to http://test.host/commontator/threads/11
|
36652
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
|
36653
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
36654
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36655
|
+
-------------------------------------------------------------------------
|
36656
|
+
Commontator::CommentsController: test_0008_won't update unless authorized
|
36657
|
+
-------------------------------------------------------------------------
|
36658
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36659
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36661
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36662
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.555103"], ["updated_at", "2014-12-23 17:25:34.555103"]]
|
36663
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36664
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36665
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36667
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36668
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36669
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36678
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36679
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36680
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
36681
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 11]]
|
36682
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
36683
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36684
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36685
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36687
|
+
Processing by Commontator::CommentsController#update as HTML
|
36688
|
+
Parameters: {"id"=>"5", "comment"=>{"body"=>"Something else"}}
|
36689
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36690
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36691
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36692
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
36693
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
36694
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36695
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36696
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36697
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
36699
|
+
Processing by Commontator::CommentsController#update as HTML
|
36700
|
+
Parameters: {"id"=>"5", "comment"=>{"body"=>"Something else"}}
|
36701
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36702
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36703
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36704
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
36705
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 11]]
|
36706
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
36707
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36708
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
36709
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36710
|
+
--------------------------------------------------------------------
|
36711
|
+
Commontator::CommentsController: test_0009_must update if authorized
|
36712
|
+
--------------------------------------------------------------------
|
36713
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36714
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36716
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36717
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.577805"], ["updated_at", "2014-12-23 17:25:34.577805"]]
|
36718
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36719
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36720
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36722
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36723
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36724
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36726
|
+
Processing by Commontator::CommentsController#update as HTML
|
36727
|
+
Parameters: {"id"=>"5", "comment"=>{"body"=>"Something else"}}
|
36728
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36729
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36730
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36731
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
36732
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 11]]
|
36733
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36734
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["body", "Something else"], ["editor_id", 12], ["editor_type", "DummyUser"], ["updated_at", "2014-12-23 17:25:34.587347"], ["id", 5]]
|
36736
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36742
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36743
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36744
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
36745
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 11]]
|
36746
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36747
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 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[0m
|
36748
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36754
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36755
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36756
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
36757
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 11]]
|
36758
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36759
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 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[0m
|
36760
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36761
|
+
Redirected to http://test.host/commontator/threads/11
|
36762
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
36763
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
36764
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36765
|
+
-----------------------------------------------------------------------------------------
|
36766
|
+
Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted
|
36767
|
+
-----------------------------------------------------------------------------------------
|
36768
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36769
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36771
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36772
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.613221"], ["updated_at", "2014-12-23 17:25:34.613221"]]
|
36773
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36774
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36775
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36777
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36778
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36779
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36781
|
+
Processing by Commontator::CommentsController#delete as HTML
|
36782
|
+
Parameters: {"id"=>"5"}
|
36783
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
36784
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36788
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36789
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36790
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
36791
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 11]]
|
36792
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
36793
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36794
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36795
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36796
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 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[0m
|
36797
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36799
|
+
Processing by Commontator::CommentsController#delete as HTML
|
36800
|
+
Parameters: {"id"=>"5"}
|
36801
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36802
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36803
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36804
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
36805
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
36806
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 11]]
|
36807
|
+
Redirected to http://test.host/commontator/threads/11
|
36808
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
|
36809
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36810
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36811
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36813
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36814
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 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[0m
|
36815
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36817
|
+
Processing by Commontator::CommentsController#delete as HTML
|
36818
|
+
Parameters: {"id"=>"5"}
|
36819
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36820
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36821
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36822
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
36823
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 11]]
|
36824
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
36825
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36826
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
36827
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36828
|
+
------------------------------------------------------------------------------------
|
36829
|
+
Commontator::CommentsController: test_0011_must delete if authorized and not deleted
|
36830
|
+
------------------------------------------------------------------------------------
|
36831
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36832
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.644082"], ["updated_at", "2014-12-23 17:25:34.644082"]]
|
36833
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36834
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36835
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36837
|
+
[1m[35mCommontator::Thread Exists (0.3ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
36838
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
36840
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36841
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36842
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36844
|
+
Processing by Commontator::CommentsController#delete as HTML
|
36845
|
+
Parameters: {"id"=>"5"}
|
36846
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36847
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36848
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36849
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
36850
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 11]]
|
36851
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36852
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 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[0m
|
36853
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36855
|
+
Redirected to http://test.host/commontator/threads/11
|
36856
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
|
36857
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36858
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.663567"], ["updated_at", "2014-12-23 17:25:34.663567"]]
|
36859
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36860
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36861
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36862
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36864
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36865
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["deleted_at", nil], ["updated_at", "2014-12-23 17:25:34.667685"], ["id", 5]]
|
36867
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36868
|
+
Processing by Commontator::CommentsController#delete as HTML
|
36869
|
+
Parameters: {"id"=>"5"}
|
36870
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36871
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36872
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36873
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36874
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 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[0m
|
36875
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36877
|
+
Redirected to http://test.host/commontator/threads/11
|
36878
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
|
36879
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36880
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 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[0m
|
36881
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36883
|
+
Processing by Commontator::CommentsController#delete as HTML
|
36884
|
+
Parameters: {"id"=>"5"}
|
36885
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
36886
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36887
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36888
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36889
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["deleted_at", "2014-12-23 17:25:34.678361"], ["editor_id", 13], ["updated_at", "2014-12-23 17:25:34.679676"], ["id", 5]]
|
36891
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36892
|
+
Redirected to http://test.host/commontator/threads/11
|
36893
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
36894
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
36895
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36896
|
+
---------------------------------------------------------------------------------------
|
36897
|
+
Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted
|
36898
|
+
---------------------------------------------------------------------------------------
|
36899
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36900
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36902
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36903
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.688408"], ["updated_at", "2014-12-23 17:25:34.688408"]]
|
36904
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
36905
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
36906
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36908
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36909
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36910
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36912
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36913
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 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[0m
|
36914
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36916
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
36917
|
+
Parameters: {"id"=>"5"}
|
36918
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
36919
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36923
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36924
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36925
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
36926
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
36927
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 11]]
|
36928
|
+
Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)
|
36929
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36930
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36931
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36932
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["deleted_at", nil], ["updated_at", "2014-12-23 17:25:34.706378"], ["id", 5]]
|
36934
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36935
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
36936
|
+
Parameters: {"id"=>"5"}
|
36937
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36938
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36939
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36940
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
36941
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 11]]
|
36942
|
+
Redirected to http://test.host/commontator/threads/11
|
36943
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
|
36944
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36945
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.712630"], ["updated_at", "2014-12-23 17:25:34.712630"]]
|
36946
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36947
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36948
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["deleted_at", "2014-12-23 17:25:34.713403"], ["editor_id", 13], ["updated_at", "2014-12-23 17:25:34.714595"], ["id", 5]]
|
36950
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36951
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
36952
|
+
Parameters: {"id"=>"5"}
|
36953
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36954
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36955
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36956
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 13]]
|
36957
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
36958
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36959
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36960
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
36961
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36963
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36964
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
36965
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["deleted_at", nil], ["editor_id", 12], ["updated_at", "2014-12-23 17:25:34.721390"], ["id", 5]]
|
36967
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36968
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36969
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["deleted_at", "2014-12-23 17:25:34.722129"], ["updated_at", "2014-12-23 17:25:34.723221"], ["id", 5]]
|
36971
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36972
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
36973
|
+
Parameters: {"id"=>"5"}
|
36974
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36975
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
36976
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36977
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
36978
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
36979
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 11]]
|
36980
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
36981
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
36982
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
36983
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36984
|
+
----------------------------------------------------------------------------------
|
36985
|
+
Commontator::CommentsController: test_0013_must undelete if authorized and deleted
|
36986
|
+
----------------------------------------------------------------------------------
|
36987
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36988
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.728897"], ["updated_at", "2014-12-23 17:25:34.728897"]]
|
36989
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36990
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36991
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
36993
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
36994
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36996
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36997
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
36998
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37000
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37001
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37004
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
37005
|
+
Parameters: {"id"=>"5"}
|
37006
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37007
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
37008
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37009
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
37010
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
37011
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 11]]
|
37012
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
37013
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["deleted_at", nil], ["updated_at", "2014-12-23 17:25:34.743544"], ["id", 5]]
|
37015
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37016
|
+
Redirected to http://test.host/commontator/threads/11
|
37017
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
|
37018
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37019
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37021
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37022
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
37023
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37025
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37026
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 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[0m
|
37027
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37029
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
37030
|
+
Parameters: {"id"=>"5"}
|
37031
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37032
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
37033
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37034
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37035
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["deleted_at", nil], ["editor_id", 13], ["updated_at", "2014-12-23 17:25:34.756214"], ["id", 5]]
|
37037
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37038
|
+
Redirected to http://test.host/commontator/threads/11
|
37039
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
|
37040
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37041
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = ?[0m [["deleted_at", "2014-12-23 17:25:34.759608"], ["editor_id", 12], ["updated_at", "2014-12-23 17:25:34.760900"], ["id", 5]]
|
37043
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37044
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
37045
|
+
Parameters: {"id"=>"5"}
|
37046
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37047
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
37048
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37049
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37050
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 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[0m
|
37051
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37053
|
+
Redirected to http://test.host/commontator/threads/11
|
37054
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
37055
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
37056
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
37057
|
+
-------------------------------------------------------------------------
|
37058
|
+
Commontator::CommentsController: test_0014_won't upvote unless authorized
|
37059
|
+
-------------------------------------------------------------------------
|
37060
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
37061
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.770426"], ["updated_at", "2014-12-23 17:25:34.770426"]]
|
37062
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
37063
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37064
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37066
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
37067
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37069
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37070
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
37071
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37077
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37078
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37079
|
+
Processing by Commontator::CommentsController#upvote as HTML
|
37080
|
+
Parameters: {"id"=>"5"}
|
37081
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37082
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
37083
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37084
|
+
[1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
37085
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
37086
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37087
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37088
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37089
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37090
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37092
|
+
Processing by Commontator::CommentsController#upvote as HTML
|
37093
|
+
Parameters: {"id"=>"5"}
|
37094
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37095
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
37096
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37097
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
37098
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
37099
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37100
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37101
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37102
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
37103
|
+
[1m[35m (0.0ms)[0m begin transaction
|
37104
|
+
--------------------------------------------------------------------
|
37105
|
+
Commontator::CommentsController: test_0015_must upvote if authorized
|
37106
|
+
--------------------------------------------------------------------
|
37107
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37108
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37110
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37111
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.797573"], ["updated_at", "2014-12-23 17:25:34.797573"]]
|
37112
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37113
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
37114
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37116
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37117
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
37118
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37120
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37121
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.802805"], ["updated_at", "2014-12-23 17:25:34.802805"]]
|
37122
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37123
|
+
Processing by Commontator::CommentsController#upvote as HTML
|
37124
|
+
Parameters: {"id"=>"5"}
|
37125
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37126
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
37127
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37128
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
37129
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
|
37130
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37131
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "votes" ("votable_id", "votable_type", "voter_id", "voter_type", "vote_flag", "vote_weight", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37133
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37134
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
|
37135
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37136
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37140
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37141
|
+
Processing by Commontator::CommentsController#upvote as HTML
|
37142
|
+
Parameters: {"id"=>"5"}
|
37143
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37144
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
37145
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37146
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
37147
|
+
[1m[36m (0.0ms)[0m [1mSELECT 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[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
|
37148
|
+
[1m[35mActsAsVotable::Vote Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37150
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37151
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37152
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
|
37153
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37154
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37158
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37159
|
+
[1m[36m (0.0ms)[0m [1mSELECT 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[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
|
37160
|
+
[1m[35mActsAsVotable::Vote Load (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37162
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37164
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37165
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37166
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37167
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37168
|
+
Processing by Commontator::CommentsController#upvote as HTML
|
37169
|
+
Parameters: {"id"=>"5"}
|
37170
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37171
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
37172
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37173
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
37174
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mActsAsVotable::Vote Load (0.0ms)[0m [1mSELECT "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[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
|
37176
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37177
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = ?[0m [["vote_flag", "t"], ["updated_at", "2014-12-23 17:25:34.839456"], ["id", 1]]
|
37178
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37179
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37180
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
|
37181
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37182
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37186
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37187
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
37188
|
+
[1m[35m (0.1ms)[0m begin transaction
|
37189
|
+
---------------------------------------------------------------------------
|
37190
|
+
Commontator::CommentsController: test_0016_won't downvote unless authorized
|
37191
|
+
---------------------------------------------------------------------------
|
37192
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
37193
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37195
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37196
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.851696"], ["updated_at", "2014-12-23 17:25:34.851696"]]
|
37197
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37198
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
37199
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37201
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37202
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
37203
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37205
|
+
Processing by Commontator::CommentsController#downvote as HTML
|
37206
|
+
Parameters: {"id"=>"5"}
|
37207
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
37208
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37209
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37210
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37211
|
+
Processing by Commontator::CommentsController#downvote as HTML
|
37212
|
+
Parameters: {"id"=>"5"}
|
37213
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37214
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
37215
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37216
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
37217
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
37218
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37219
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37220
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37221
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37222
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.865544"], ["updated_at", "2014-12-23 17:25:34.865544"]]
|
37223
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37224
|
+
Processing by Commontator::CommentsController#downvote as HTML
|
37225
|
+
Parameters: {"id"=>"5"}
|
37226
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37227
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
37228
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37229
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
37230
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
37231
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37232
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37233
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37234
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
37235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
37236
|
+
----------------------------------------------------------------------
|
37237
|
+
Commontator::CommentsController: test_0017_must downvote if authorized
|
37238
|
+
----------------------------------------------------------------------
|
37239
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
37240
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.872616"], ["updated_at", "2014-12-23 17:25:34.872616"]]
|
37241
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
37242
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37243
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37245
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
37246
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37248
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37249
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
37250
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37252
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37253
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37255
|
+
Processing by Commontator::CommentsController#downvote as HTML
|
37256
|
+
Parameters: {"id"=>"5"}
|
37257
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37258
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
37259
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37260
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
37261
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37263
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37265
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37266
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37267
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37268
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37269
|
+
Redirected to http://test.host/commontator/threads/11
|
37270
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
37271
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37272
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37273
|
+
Processing by Commontator::CommentsController#downvote as HTML
|
37274
|
+
Parameters: {"id"=>"5"}
|
37275
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37276
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
37277
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37278
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
37279
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mActsAsVotable::Vote Load (0.0ms)[0m [1mSELECT "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[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
|
37281
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37282
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37283
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37284
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37285
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37286
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37287
|
+
Redirected to http://test.host/commontator/threads/11
|
37288
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
|
37289
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37290
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37291
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mActsAsVotable::Vote Load (0.0ms)[0m [1mSELECT "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[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
|
37293
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37294
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = ?[0m [["vote_flag", "t"], ["updated_at", "2014-12-23 17:25:34.914847"], ["id", 1]]
|
37295
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
37296
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37297
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
|
37298
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37299
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37303
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
37304
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37305
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
37306
|
+
[1m[36m (0.0ms)[0m [1mSELECT 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[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
|
37307
|
+
[1m[35mActsAsVotable::Vote Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
37309
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37311
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37312
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37313
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37314
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37315
|
+
Redirected to http://test.host/commontator/threads/11
|
37316
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
37317
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37318
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37319
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
37320
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
37321
|
+
-------------------------------------------------------------------------
|
37322
|
+
Commontator::CommentsController: test_0018_won't unvote unless authorized
|
37323
|
+
-------------------------------------------------------------------------
|
37324
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
37325
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.932228"], ["updated_at", "2014-12-23 17:25:34.932228"]]
|
37326
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37327
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37328
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37330
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
37331
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37333
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37334
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
37335
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37337
|
+
[1m[36m (0.0ms)[0m [1mSELECT 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[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 12], ["voter_type", "DummyUser"]]
|
37338
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37339
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "votes" ("votable_id", "votable_type", "voter_id", "voter_type", "vote_flag", "vote_weight", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37341
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37342
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
|
37343
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37344
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37349
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37350
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37351
|
+
Processing by Commontator::CommentsController#unvote as HTML
|
37352
|
+
Parameters: {"id"=>"5"}
|
37353
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37354
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
37355
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37356
|
+
[1m[36mDummyUser Load (2.6ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
37357
|
+
Completed 403 Forbidden in 4ms (ActiveRecord: 2.6ms)
|
37358
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37359
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37360
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37361
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37362
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37364
|
+
Processing by Commontator::CommentsController#unvote as HTML
|
37365
|
+
Parameters: {"id"=>"5"}
|
37366
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37367
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
37368
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37369
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
37370
|
+
Completed 403 Forbidden in 7ms (ActiveRecord: 0.2ms)
|
37371
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37372
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37373
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37374
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
37375
|
+
[1m[35m (0.0ms)[0m begin transaction
|
37376
|
+
--------------------------------------------------------------------
|
37377
|
+
Commontator::CommentsController: test_0019_must unvote if authorized
|
37378
|
+
--------------------------------------------------------------------
|
37379
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37380
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37382
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37383
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.978902"], ["updated_at", "2014-12-23 17:25:34.978902"]]
|
37384
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37385
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
37386
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37388
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37389
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
37390
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37392
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37393
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:34.984469"], ["updated_at", "2014-12-23 17:25:34.984469"]]
|
37394
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37395
|
+
[1m[36m (0.0ms)[0m [1mSELECT 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[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
|
37396
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37397
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "votes" ("votable_id", "votable_type", "voter_id", "voter_type", "vote_flag", "vote_weight", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37399
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37400
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 1 WHERE "commontator_comments"."id" = ? [["id", 5]]
|
37401
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37402
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37406
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
37407
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37408
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
37409
|
+
[1m[36m (0.0ms)[0m [1mSELECT 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[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
|
37410
|
+
[1m[35mActsAsVotable::Vote Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37412
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]
|
37413
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37414
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37415
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37416
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37417
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37418
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37422
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37423
|
+
Processing by Commontator::CommentsController#unvote as HTML
|
37424
|
+
Parameters: {"id"=>"5"}
|
37425
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 5]]
|
37426
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
37427
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37428
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 12]]
|
37429
|
+
[1m[36m (0.0ms)[0m [1mSELECT 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[0m [["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
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37433
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37434
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37436
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37438
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37439
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37440
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37441
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "commontator_comments" SET "cached_votes_down" = 1 WHERE "commontator_comments"."id" = ?[0m [["id", 5]]
|
37442
|
+
Processing by Commontator::CommentsController#unvote as HTML
|
37443
|
+
Parameters: {"id"=>"5"}
|
37444
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 5]]
|
37445
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 11]]
|
37446
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37447
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 12]]
|
37448
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mActsAsVotable::Vote Load (0.1ms)[0m [1mSELECT "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[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"], ["voter_id", 13], ["voter_type", "DummyUser"]]
|
37450
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37451
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "votes" WHERE "votes"."id" = ?[0m [["id", 2]]
|
37452
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37453
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37454
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "cached_votes_up" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
|
37455
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37456
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "commontator_comments" SET "cached_votes_down" = 0 WHERE "commontator_comments"."id" = ? [["id", 5]]
|
37457
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["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
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37461
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 5], ["votable_type", "Commontator::Comment"]]
|
37462
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
37463
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
37464
|
+
------------------------------------------------------------------------------
|
37465
|
+
Commontator::CommentsController: test_0020_won't send mail if recipients empty
|
37466
|
+
------------------------------------------------------------------------------
|
37467
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37468
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:35.024429"], ["updated_at", "2014-12-23 17:25:35.024429"]]
|
37469
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37470
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37471
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37473
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
37474
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_type", "commontable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37476
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37477
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1
|
37478
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("thread_id", "creator_id", "creator_type", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37480
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
37481
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37483
|
+
Processing by Commontator::CommentsController#create as HTML
|
37484
|
+
Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
|
37485
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
37486
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37487
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37488
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
37489
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37491
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
37495
|
+
[1m[35m (0.1ms)[0m begin transaction
|
37496
|
+
---------------------------------------------------------------------------------
|
37497
|
+
Commontator::CommentsController: test_0021_must send mail if recipients not empty
|
37498
|
+
---------------------------------------------------------------------------------
|
37499
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
37500
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37502
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37503
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:35.045604"], ["updated_at", "2014-12-23 17:25:35.045604"]]
|
37504
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 10]]
|
37505
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
37506
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37508
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37509
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
37510
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37512
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
37513
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-12-23 17:25:35.052718"], ["updated_at", "2014-12-23 17:25:35.052718"]]
|
37514
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
37515
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = ? ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 11]]
|
37516
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37517
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 11 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1[0m
|
37518
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37520
|
+
Processing by Commontator::CommentsController#create as HTML
|
37521
|
+
Parameters: {"thread_id"=>"11", "comment"=>{"body"=>"Something else"}}
|
37522
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 11]]
|
37523
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 10]]
|
37524
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
37525
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 11 AND "commontator_comments"."deleted_at" IS NULL) LIMIT 1[0m
|
37526
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
37528
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 11]]
|
37529
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 13]]
|
37530
|
+
Redirected to http://test.host/commontator/threads/11
|
37531
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
|
37532
|
+
[1m[35m (0.5ms)[0m rollback transaction
|