commontator 4.2.0 → 4.2.1

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: 62ff7e0ae14f2179de8ad2f079f27c5647a253bb
4
- data.tar.gz: 205e1137acfdea70a5d0ded9c7714b0e85d494dd
3
+ metadata.gz: 513288c6970326e146fdadf570df804669054b3f
4
+ data.tar.gz: 6ffb45e5c277a305a77fe46303224b71405f20fa
5
5
  SHA512:
6
- metadata.gz: 60f0a5755fa8b1f143a4e492463d017c37effc7c5d5e3fb7a327d15e78b4f1077df459e04f0e25849a0fbeded4197009f96fc0195c59608e969d0a35afca5be5
7
- data.tar.gz: 401709696330a73aba059e47dfc40ca35324ee3a0909ac306f01b819c69bcfea50b37fa4ed5862942585f79b42afed4d7dff59fd78faca02f561a24999f32395
6
+ metadata.gz: feb913cfe5e46fdccb47579067a8138a4b70b350762e93055fbc4ac2e6a1a8239580db8407d4563b74209a435a4394d132f438908f301b03fdbe4486e98c11cc
7
+ data.tar.gz: c78383e972f9534e26676403f934bc8f797611fef6130edba2ff2c640ecfc7ed7bbfcba8e2a0fb25fa00dade64e4d1f6ec9831506a0d7a60f793ee1549f3dbd9
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # Commontator
2
2
 
3
3
  Commontator is a Rails engine for comments. It is compatible with Rails 3.1+ and Rails 4.
4
- Being an engine means it is fully functional as soon as you install and configure its gem, providing models, views and controllers of its own.
4
+ Being an engine means it is fully functional as soon as you install and
5
+ configure the gem, providing models, views and controllers of its own.
5
6
  At the same time, almost anything about it can be configured or customized to suit your needs.
6
7
 
7
8
  ## Installation
@@ -72,7 +73,7 @@ Follow the steps below to add commontator to your models and views:
72
73
 
73
74
  1. Models
74
75
 
75
- Add this line to your user model(s) (or any models that should be able to make comments):
76
+ Add this line to your user model(s) (or any models that should be able to post comments):
76
77
 
77
78
  ```ruby
78
79
  acts_as_commontator
@@ -86,28 +87,34 @@ Follow the steps below to add commontator to your models and views:
86
87
 
87
88
  2. Views
88
89
 
90
+ In the following instructions, `commontable` is an instance of a model that `acts_as_commontable`.
91
+
89
92
  Add the following line to any erb view where you would like to display comments:
90
93
 
91
94
  ```erb
92
95
  <%= commontator_thread(commontable) %>
93
96
  ```
94
97
 
95
- Where commontable is an instance of some model that acts_as_commontable.
98
+ This will create a link in the view that the user will be able to click to display the comment thread.
99
+
96
100
  Note that model's record must already exist in the database, so do not use this in new.html.erb, _form.html.erb or similar.
97
101
  We recommend you use this in the model's show.html.erb.
98
102
 
99
103
  3. Controllers
100
104
 
101
- Instead of linking to the thread, you might want to have the thread display right away when the corresponding view page is loaded.
102
- If that's the case, add the following to the controller action that displays the view where the thread is located:
105
+ By default, the `commontator_thread` method only links to the desired comment thread.
106
+ If you want, instead, to have the thread display right away when the corresponding view page is loaded,
107
+ just add the following method call to the controller action that displays the view in question:
103
108
 
104
109
  ```ruby
105
110
  commontator_thread_show(commontable)
106
111
  ```
107
112
 
108
- Note that the above method also checks the current user's read permission on the thread.
109
- It will raise a SecurityTransgression if the user is not allowed to read the thread.
110
- You can specify the proc that determines which users are allowed to read which threads in the initializer.
113
+ Note that the call to `commontator_thread` in the view is still necessary in either case.
114
+
115
+ The `commontator_thread_show` method checks the current user's read permission on the thread and will raise an
116
+ exception if the user is not allowed to read it according to the configuration options in the initializer.
117
+ It is up to you to ensure that this method is only called if the user is authorized to read the thread.
111
118
 
112
119
  That's it! Commontator is now ready for use.
113
120
 
@@ -125,12 +132,13 @@ And enabling the relevant option in commontator's initializer:
125
132
  config.can_vote_on_comments = true
126
133
  ```
127
134
 
128
- Note that acts_as_votable is currently incompatible with the protected_attributes gem if config.active_record.whitelist_attributes is set to true.
135
+ Note that acts_as_votable is currently incompatible with the protected_attributes
136
+ gem if config.active_record.whitelist_attributes is set to true.
129
137
 
130
138
  ## Browser Support
131
139
 
132
- No incompatibilities are currently known with any of the major browsers.
133
- Commontator requires javascript enabled to function properly.
140
+ Commontator should work properly on any of the major browsers.
141
+ To function properly, this gem requires that visitors to the site have javascript enabled.
134
142
 
135
143
  ## Customization
136
144
 
@@ -198,5 +206,5 @@ $ bundle exec rake
198
206
 
199
207
  ## License
200
208
 
201
- This engine is distributed under the terms of the MIT license.
209
+ This gem is distributed under the terms of the MIT license.
202
210
  See the MIT-LICENSE file for details.
@@ -16,7 +16,7 @@ class InstallCommontator < ActiveRecord::Migration
16
16
  t.timestamps
17
17
  end
18
18
 
19
- add_index :commontator_comments, [:creator_type, :creator_id, :thread_id], :name => 'index_c_c_on_c_type_and_c_id_and_t_id'
19
+ add_index :commontator_comments, [:creator_id, :creator_type, :thread_id], :name => 'index_c_c_on_c_id_and_c_type_and_t_id'
20
20
  add_index :commontator_comments, :thread_id
21
21
 
22
22
  add_index :commontator_comments, :cached_votes_total
@@ -32,7 +32,7 @@ class InstallCommontator < ActiveRecord::Migration
32
32
  t.timestamps
33
33
  end
34
34
 
35
- add_index :commontator_subscriptions, [:subscriber_type, :subscriber_id, :thread_id], :unique => true, :name => 'index_c_s_on_s_type_and_s_id_and_t_id'
35
+ add_index :commontator_subscriptions, [:subscriber_id, :subscriber_type, :thread_id], :unique => true, :name => 'index_c_s_on_s_id_and_s_type_and_t_id'
36
36
  add_index :commontator_subscriptions, :thread_id
37
37
 
38
38
  create_table 'commontator_threads' do |t|
@@ -45,6 +45,6 @@ class InstallCommontator < ActiveRecord::Migration
45
45
  t.timestamps
46
46
  end
47
47
 
48
- add_index :commontator_threads, [:commontable_type, :commontable_id], :unique => true, :name => 'index_c_t_on_c_type_and_c_id'
48
+ add_index :commontator_threads, [:commontable_id, :commontable_type], :unique => true, :name => 'index_c_t_on_c_id_and_c_type'
49
49
  end
50
50
  end
@@ -0,0 +1,50 @@
1
+ class InstallCommontator < ActiveRecord::Migration
2
+ def change
3
+ create_table 'commontator_comments' do |t|
4
+ t.string 'creator_type'
5
+ t.integer 'creator_id'
6
+ t.string 'editor_type'
7
+ t.integer 'editor_id'
8
+ t.integer 'thread_id', :null => false
9
+ t.text 'body', :null => false
10
+ t.datetime 'deleted_at'
11
+
12
+ t.integer 'cached_votes_total', :default => 0
13
+ t.integer 'cached_votes_up', :default => 0
14
+ t.integer 'cached_votes_down', :default => 0
15
+
16
+ t.timestamps
17
+ end
18
+
19
+ add_index :commontator_comments, [:creator_id, :creator_type, :thread_id], :name => 'index_c_c_on_c_id_and_c_type_and_t_id'
20
+ add_index :commontator_comments, :thread_id
21
+
22
+ add_index :commontator_comments, :cached_votes_total
23
+ add_index :commontator_comments, :cached_votes_up
24
+ add_index :commontator_comments, :cached_votes_down
25
+
26
+ create_table 'commontator_subscriptions' do |t|
27
+ t.string 'subscriber_type', :null => false
28
+ t.integer 'subscriber_id', :null => false
29
+ t.integer 'thread_id', :null => false
30
+ t.integer 'unread', :null => false, :default => 0
31
+
32
+ t.timestamps
33
+ end
34
+
35
+ add_index :commontator_subscriptions, [:subscriber_id, :subscriber_type, :thread_id], :unique => true, :name => 'index_c_s_on_s_id_and_s_type_and_t_id'
36
+ add_index :commontator_subscriptions, :thread_id
37
+
38
+ create_table 'commontator_threads' do |t|
39
+ t.string 'commontable_type'
40
+ t.integer 'commontable_id'
41
+ t.datetime 'closed_at'
42
+ t.string 'closer_type'
43
+ t.integer 'closer_id'
44
+
45
+ t.timestamps
46
+ end
47
+
48
+ add_index :commontator_threads, [:commontable_id, :commontable_type], :unique => true, :name => 'index_c_t_on_c_type_and_c_id'
49
+ end
50
+ end
@@ -1,3 +1,3 @@
1
1
  module Commontator
2
- VERSION = "4.2.0"
2
+ VERSION = "4.2.1"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Commontator
2
- VERSION = "4.1.2"
2
+ VERSION = "4.2.0"
3
3
  end
Binary file
@@ -322916,3 +322916,2084 @@ Commontator::ThreadsHelper: test_0001_must print commontable name
322916
322916
  Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 16], ["subscriber_type", "DummyUser"]]
322917
322917
  Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 11]]
322918
322918
  DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 16]]
322919
+  (12.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) 
322920
+  (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")
322921
+  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
322922
+  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")
322923
+  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")
322924
+  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")
322925
+  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime) 
322926
+  (6.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
322927
+  (5.5ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")
322928
+  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)
322929
+  (5.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")
322930
+  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
322931
+  (6.0ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
322932
+  (6.0ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)
322933
+  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")
322934
+  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
322935
+  (5.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")
322936
+  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
322937
+  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
322938
+  (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
322939
+  (0.1ms) SELECT version FROM "schema_migrations"
322940
+  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('3')
322941
+  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')
322942
+  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
322943
+  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
322944
+  (0.0ms) begin transaction
322945
+ SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
322946
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]]
322947
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
322948
+ SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
322949
+  (10.6ms) commit transaction
322950
+  (0.0ms) begin transaction
322951
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
322952
+  (5.6ms) commit transaction
322953
+  (0.0ms) begin transaction
322954
+ --------------------------------------------------------------------
322955
+ Commontator::ApplicationHelper: test_0001_must print javascript proc
322956
+ --------------------------------------------------------------------
322957
+  (0.0ms) rollback transaction
322958
+  (0.0ms) begin transaction
322959
+ -------------------------------------------------------------------------------
322960
+ Commontator::Comment: test_0001_must be votable if acts_as_votable is installed
322961
+ -------------------------------------------------------------------------------
322962
+  (0.0ms) SAVEPOINT active_record_1
322963
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
322964
+  (0.0ms) RELEASE SAVEPOINT active_record_1
322965
+  (0.0ms) SAVEPOINT active_record_1
322966
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
322967
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
322968
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
322969
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
322970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
322971
+  (0.1ms) rollback transaction
322972
+  (0.0ms) begin transaction
322973
+ -----------------------------------------------------------------
322974
+ Commontator::Comment: test_0002_must know if it has been modified
322975
+ -----------------------------------------------------------------
322976
+  (0.0ms) SAVEPOINT active_record_1
322977
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
322978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
322979
+  (0.0ms) SAVEPOINT active_record_1
322980
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
322981
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
322982
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
322983
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
322984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
322985
+  (0.0ms) SAVEPOINT active_record_1
322986
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
322987
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
322988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
322989
+  (0.0ms) SAVEPOINT active_record_1
322990
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
322991
+ SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
322992
+  (0.0ms) RELEASE SAVEPOINT active_record_1
322993
+  (0.1ms) rollback transaction
322994
+  (0.0ms) begin transaction
322995
+ ----------------------------------------------------------------
322996
+ Commontator::Comment: test_0003_must know if it has been deleted
322997
+ ----------------------------------------------------------------
322998
+  (0.0ms) SAVEPOINT active_record_1
322999
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323000
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323001
+  (0.0ms) SAVEPOINT active_record_1
323002
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323003
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323004
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323005
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323006
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323007
+  (0.0ms) SAVEPOINT active_record_1
323008
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323009
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323010
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323011
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323012
+  (0.0ms) SAVEPOINT active_record_1
323013
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323014
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323016
+  (0.1ms) rollback transaction
323017
+  (0.0ms) begin transaction
323018
+ -----------------------------------------------------------
323019
+ Commontator::Comment: test_0004_must make proper timestamps
323020
+ -----------------------------------------------------------
323021
+  (0.0ms) SAVEPOINT active_record_1
323022
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323024
+  (0.0ms) SAVEPOINT active_record_1
323025
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323026
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323027
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323028
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323030
+  (0.0ms) SAVEPOINT active_record_1
323031
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323032
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323034
+  (0.0ms) SAVEPOINT active_record_1
323035
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323036
+ SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323038
+  (0.1ms) rollback transaction
323039
+  (0.0ms) begin transaction
323040
+ --------------------------------------------------------------------------
323041
+ Commontator::CommentsController: test_0001_won't get new unless authorized
323042
+ --------------------------------------------------------------------------
323043
+  (0.0ms) SAVEPOINT active_record_1
323044
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323046
+  (0.0ms) SAVEPOINT active_record_1
323047
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323048
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323049
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323050
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323052
+  (0.0ms) SAVEPOINT active_record_1
323053
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323054
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323056
+ Processing by Commontator::CommentsController#new as HTML
323057
+ Parameters: {"thread_id"=>"2"}
323058
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
323059
+ Processing by Commontator::CommentsController#new as HTML
323060
+ Parameters: {"thread_id"=>"2"}
323061
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323062
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323063
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
323064
+  (0.1ms) rollback transaction
323065
+  (0.0ms) begin transaction
323066
+ ---------------------------------------------------------------------
323067
+ Commontator::CommentsController: test_0002_must get new if authorized
323068
+ ---------------------------------------------------------------------
323069
+  (0.0ms) SAVEPOINT active_record_1
323070
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323072
+  (0.0ms) SAVEPOINT active_record_1
323073
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323074
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323075
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323076
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323078
+  (0.0ms) SAVEPOINT active_record_1
323079
+ Commontator::Comment Exists (1.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323080
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
323082
+ Processing by Commontator::CommentsController#new as HTML
323083
+ Parameters: {"thread_id"=>"2"}
323084
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323085
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323086
+ Redirected to http://test.host/commontator/threads/2
323087
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
323088
+ Processing by Commontator::CommentsController#new as HTML
323089
+ Parameters: {"thread_id"=>"2"}
323090
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323091
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323092
+ Redirected to http://test.host/commontator/threads/2
323093
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
323094
+ Processing by Commontator::CommentsController#new as HTML
323095
+ Parameters: {"thread_id"=>"2"}
323096
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323097
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323098
+ Redirected to http://test.host/commontator/threads/2
323099
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
323100
+  (0.1ms) rollback transaction
323101
+  (0.0ms) begin transaction
323102
+ -------------------------------------------------------------------------
323103
+ Commontator::CommentsController: test_0003_won't create unless authorized
323104
+ -------------------------------------------------------------------------
323105
+  (0.0ms) SAVEPOINT active_record_1
323106
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323108
+  (0.0ms) SAVEPOINT active_record_1
323109
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323110
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323111
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323112
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323114
+  (0.0ms) SAVEPOINT active_record_1
323115
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323116
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323118
+ Processing by Commontator::CommentsController#create as HTML
323119
+ Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
323120
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
323121
+ Processing by Commontator::CommentsController#create as HTML
323122
+ Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
323123
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323124
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323125
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
323126
+  (0.1ms) SAVEPOINT active_record_1
323127
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323128
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323130
+ Processing by Commontator::CommentsController#create as HTML
323131
+ Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
323132
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323133
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323134
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
323135
+  (0.1ms) rollback transaction
323136
+  (0.0ms) begin transaction
323137
+ --------------------------------------------------------------------
323138
+ Commontator::CommentsController: test_0004_must create if authorized
323139
+ --------------------------------------------------------------------
323140
+  (0.0ms) SAVEPOINT active_record_1
323141
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323143
+  (0.0ms) SAVEPOINT active_record_1
323144
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323145
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323146
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323147
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323149
+  (0.0ms) SAVEPOINT active_record_1
323150
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323151
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323153
+ Processing by Commontator::CommentsController#create as HTML
323154
+ Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
323155
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323156
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323157
+  (0.0ms) SAVEPOINT active_record_1
323158
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323159
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323161
+  (0.0ms) SAVEPOINT active_record_1
323162
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]
323163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323164
+ Redirected to http://test.host/commontator/threads/2
323165
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
323166
+ Processing by Commontator::CommentsController#create as HTML
323167
+ Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
323168
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323169
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323170
+  (0.0ms) SAVEPOINT active_record_1
323171
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323172
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323174
+  (0.0ms) SAVEPOINT active_record_1
323175
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]
323176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323177
+ Redirected to http://test.host/commontator/threads/2
323178
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
323179
+ Processing by Commontator::CommentsController#create as HTML
323180
+ Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
323181
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323182
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323183
+  (0.0ms) SAVEPOINT active_record_1
323184
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323185
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323187
+  (0.0ms) SAVEPOINT active_record_1
323188
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]
323189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323190
+ Redirected to http://test.host/commontator/threads/2
323191
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
323192
+  (0.1ms) rollback transaction
323193
+  (0.0ms) begin transaction
323194
+ -------------------------------------------------------------------------
323195
+ Commontator::CommentsController: test_0005_won't create if double posting
323196
+ -------------------------------------------------------------------------
323197
+  (0.0ms) SAVEPOINT active_record_1
323198
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323200
+  (0.0ms) SAVEPOINT active_record_1
323201
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323202
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323203
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323204
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323206
+  (0.0ms) SAVEPOINT active_record_1
323207
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323208
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323210
+ Processing by Commontator::CommentsController#create as HTML
323211
+ Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}}
323212
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323213
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323214
+  (0.0ms) SAVEPOINT active_record_1
323215
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323216
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
323217
+ Redirected to http://test.host/commontator/threads/2
323218
+ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)
323219
+ Processing by Commontator::CommentsController#create as HTML
323220
+ Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}}
323221
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323222
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323223
+  (0.0ms) SAVEPOINT active_record_1
323224
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323225
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323227
+  (0.0ms) SAVEPOINT active_record_1
323228
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]
323229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323230
+ Redirected to http://test.host/commontator/threads/2
323231
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
323232
+ Processing by Commontator::CommentsController#create as HTML
323233
+ Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}}
323234
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
323235
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323236
+  (0.0ms) SAVEPOINT active_record_1
323237
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323238
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
323239
+ Redirected to http://test.host/commontator/threads/2
323240
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
323241
+  (0.1ms) rollback transaction
323242
+  (0.0ms) begin transaction
323243
+ -----------------------------------------------------------------------
323244
+ Commontator::CommentsController: test_0006_won't edit unless authorized
323245
+ -----------------------------------------------------------------------
323246
+  (0.0ms) SAVEPOINT active_record_1
323247
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323249
+  (0.0ms) SAVEPOINT active_record_1
323250
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323251
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323252
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323253
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323255
+  (0.0ms) SAVEPOINT active_record_1
323256
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323257
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323259
+ Processing by Commontator::CommentsController#edit as HTML
323260
+ Parameters: {"id"=>"1"}
323261
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
323262
+ Processing by Commontator::CommentsController#edit as HTML
323263
+ Parameters: {"id"=>"1"}
323264
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323265
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323266
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323267
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323268
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323269
+ Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)
323270
+  (0.0ms) SAVEPOINT active_record_1
323271
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323273
+ Processing by Commontator::CommentsController#edit as HTML
323274
+ Parameters: {"id"=>"1"}
323275
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323276
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323277
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323278
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323279
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323280
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
323281
+  (0.0ms) SAVEPOINT active_record_1
323282
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323283
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323285
+ Processing by Commontator::CommentsController#edit as HTML
323286
+ Parameters: {"id"=>"1"}
323287
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323288
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323289
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323290
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323291
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
323292
+  (0.1ms) rollback transaction
323293
+  (0.0ms) begin transaction
323294
+ ------------------------------------------------------------------
323295
+ Commontator::CommentsController: test_0007_must edit if authorized
323296
+ ------------------------------------------------------------------
323297
+  (0.0ms) SAVEPOINT active_record_1
323298
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323300
+  (0.0ms) SAVEPOINT active_record_1
323301
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323302
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323303
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323304
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323306
+  (0.0ms) SAVEPOINT active_record_1
323307
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323308
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323310
+ Processing by Commontator::CommentsController#edit as HTML
323311
+ Parameters: {"id"=>"1"}
323312
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323313
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323314
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323315
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323316
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323317
+ Redirected to http://test.host/commontator/threads/2
323318
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
323319
+ Processing by Commontator::CommentsController#edit as HTML
323320
+ Parameters: {"id"=>"1"}
323321
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323322
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323323
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323324
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323325
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323326
+ Redirected to http://test.host/commontator/threads/2
323327
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
323328
+ Processing by Commontator::CommentsController#edit as HTML
323329
+ Parameters: {"id"=>"1"}
323330
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323331
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323332
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323333
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323334
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323335
+ Redirected to http://test.host/commontator/threads/2
323336
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
323337
+  (0.1ms) rollback transaction
323338
+  (0.0ms) begin transaction
323339
+ -------------------------------------------------------------------------
323340
+ Commontator::CommentsController: test_0008_won't update unless authorized
323341
+ -------------------------------------------------------------------------
323342
+  (0.0ms) SAVEPOINT active_record_1
323343
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323345
+  (0.0ms) SAVEPOINT active_record_1
323346
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323347
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323348
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323349
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323351
+  (0.0ms) SAVEPOINT active_record_1
323352
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323353
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323355
+ Processing by Commontator::CommentsController#update as HTML
323356
+ Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}}
323357
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
323358
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323359
+ Processing by Commontator::CommentsController#update as HTML
323360
+ Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}}
323361
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323362
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323363
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323364
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323365
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323366
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
323367
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323368
+  (0.0ms) SAVEPOINT active_record_1
323369
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323371
+ Processing by Commontator::CommentsController#update as HTML
323372
+ Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}}
323373
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323374
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323375
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323376
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323377
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323378
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
323379
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323380
+  (0.0ms) SAVEPOINT active_record_1
323381
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323382
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323384
+ Processing by Commontator::CommentsController#update as HTML
323385
+ Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}}
323386
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323387
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323388
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323389
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323390
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
323391
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323392
+  (0.1ms) rollback transaction
323393
+  (0.0ms) begin transaction
323394
+ --------------------------------------------------------------------
323395
+ Commontator::CommentsController: test_0009_must update if authorized
323396
+ --------------------------------------------------------------------
323397
+  (0.0ms) SAVEPOINT active_record_1
323398
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323400
+  (0.0ms) SAVEPOINT active_record_1
323401
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323402
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323403
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323404
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323406
+  (0.0ms) SAVEPOINT active_record_1
323407
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323408
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323410
+ Processing by Commontator::CommentsController#update as HTML
323411
+ Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}}
323412
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323413
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323414
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323415
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323416
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323417
+  (0.0ms) SAVEPOINT active_record_1
323418
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323419
+ SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323421
+ Redirected to http://test.host/commontator/threads/2
323422
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
323423
+ Processing by Commontator::CommentsController#update as HTML
323424
+ Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}}
323425
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323426
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323427
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323428
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323429
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323430
+  (0.0ms) SAVEPOINT active_record_1
323431
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323433
+ Redirected to http://test.host/commontator/threads/2
323434
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
323435
+ Processing by Commontator::CommentsController#update as HTML
323436
+ Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}}
323437
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323438
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323439
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323440
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323441
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323442
+  (0.0ms) SAVEPOINT active_record_1
323443
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323445
+ Redirected to http://test.host/commontator/threads/2
323446
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
323447
+  (0.1ms) rollback transaction
323448
+  (0.0ms) begin transaction
323449
+ -----------------------------------------------------------------------------------------
323450
+ Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted
323451
+ -----------------------------------------------------------------------------------------
323452
+  (0.0ms) SAVEPOINT active_record_1
323453
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323455
+  (0.0ms) SAVEPOINT active_record_1
323456
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323457
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323458
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323459
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323460
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323461
+  (0.0ms) SAVEPOINT active_record_1
323462
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323463
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323465
+ Processing by Commontator::CommentsController#delete as HTML
323466
+ Parameters: {"id"=>"1"}
323467
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
323468
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323469
+ Processing by Commontator::CommentsController#delete as HTML
323470
+ Parameters: {"id"=>"1"}
323471
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323472
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323473
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323474
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323475
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323476
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
323477
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323478
+  (0.0ms) SAVEPOINT active_record_1
323479
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323480
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323481
+ SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323483
+ Processing by Commontator::CommentsController#delete as HTML
323484
+ Parameters: {"id"=>"1"}
323485
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323486
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323487
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323488
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323489
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323490
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323491
+ Redirected to http://test.host/commontator/threads/2
323492
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
323493
+  (0.0ms) SAVEPOINT active_record_1
323494
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323495
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323497
+  (0.0ms) SAVEPOINT active_record_1
323498
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323499
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323501
+ Processing by Commontator::CommentsController#delete as HTML
323502
+ Parameters: {"id"=>"1"}
323503
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323504
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323505
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323506
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323507
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
323508
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323509
+  (0.1ms) rollback transaction
323510
+  (0.0ms) begin transaction
323511
+ ------------------------------------------------------------------------------------
323512
+ Commontator::CommentsController: test_0011_must delete if authorized and not deleted
323513
+ ------------------------------------------------------------------------------------
323514
+  (0.0ms) SAVEPOINT active_record_1
323515
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323517
+  (0.0ms) SAVEPOINT active_record_1
323518
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323519
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323520
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323521
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323523
+  (0.0ms) SAVEPOINT active_record_1
323524
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323525
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323526
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323527
+ Processing by Commontator::CommentsController#delete as HTML
323528
+ Parameters: {"id"=>"1"}
323529
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323530
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323531
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323532
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323533
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323534
+  (0.0ms) SAVEPOINT active_record_1
323535
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323536
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323538
+ Redirected to http://test.host/commontator/threads/2
323539
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
323540
+  (0.0ms) SAVEPOINT active_record_1
323541
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323543
+  (0.0ms) SAVEPOINT active_record_1
323544
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323545
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323547
+  (0.0ms) SAVEPOINT active_record_1
323548
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323549
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323551
+ Processing by Commontator::CommentsController#delete as HTML
323552
+ Parameters: {"id"=>"1"}
323553
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323554
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323555
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323556
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323557
+  (0.0ms) SAVEPOINT active_record_1
323558
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323559
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323560
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323561
+ Redirected to http://test.host/commontator/threads/2
323562
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
323563
+  (0.0ms) SAVEPOINT active_record_1
323564
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323565
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323567
+ Processing by Commontator::CommentsController#delete as HTML
323568
+ Parameters: {"id"=>"1"}
323569
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323570
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323571
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323572
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323573
+  (0.0ms) SAVEPOINT active_record_1
323574
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323575
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323577
+ Redirected to http://test.host/commontator/threads/2
323578
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
323579
+  (0.1ms) rollback transaction
323580
+  (0.0ms) begin transaction
323581
+ ---------------------------------------------------------------------------------------
323582
+ Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted
323583
+ ---------------------------------------------------------------------------------------
323584
+  (0.3ms) SAVEPOINT active_record_1
323585
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323587
+  (0.0ms) SAVEPOINT active_record_1
323588
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323589
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323590
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323591
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323593
+  (0.0ms) SAVEPOINT active_record_1
323594
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323595
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323597
+  (0.0ms) SAVEPOINT active_record_1
323598
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323599
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323600
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323601
+ Processing by Commontator::CommentsController#undelete as HTML
323602
+ Parameters: {"id"=>"1"}
323603
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
323604
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323605
+ Processing by Commontator::CommentsController#undelete as HTML
323606
+ Parameters: {"id"=>"1"}
323607
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323608
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323609
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323610
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323611
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323612
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323613
+ Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)
323614
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323615
+  (0.0ms) SAVEPOINT active_record_1
323616
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323617
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323618
+ SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323619
+  (0.1ms) RELEASE SAVEPOINT active_record_1
323620
+ Processing by Commontator::CommentsController#undelete as HTML
323621
+ Parameters: {"id"=>"1"}
323622
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323623
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323624
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323625
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323626
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323627
+ Redirected to http://test.host/commontator/threads/2
323628
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
323629
+  (0.1ms) SAVEPOINT active_record_1
323630
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323631
+  (0.1ms) RELEASE SAVEPOINT active_record_1
323632
+  (0.0ms) SAVEPOINT active_record_1
323633
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323634
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323636
+ Processing by Commontator::CommentsController#undelete as HTML
323637
+ Parameters: {"id"=>"1"}
323638
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323639
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323640
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]
323641
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323642
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
323643
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323644
+  (0.0ms) SAVEPOINT active_record_1
323645
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323646
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323648
+  (0.0ms) SAVEPOINT active_record_1
323649
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323650
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323651
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323653
+  (0.0ms) SAVEPOINT active_record_1
323654
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323655
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323657
+ Processing by Commontator::CommentsController#undelete as HTML
323658
+ Parameters: {"id"=>"1"}
323659
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323660
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323661
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323662
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323663
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323664
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
323665
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323666
+  (0.1ms) rollback transaction
323667
+  (0.0ms) begin transaction
323668
+ ----------------------------------------------------------------------------------
323669
+ Commontator::CommentsController: test_0013_must undelete if authorized and deleted
323670
+ ----------------------------------------------------------------------------------
323671
+  (0.0ms) SAVEPOINT active_record_1
323672
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323674
+  (0.0ms) SAVEPOINT active_record_1
323675
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323676
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323677
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323678
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323679
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323680
+  (0.0ms) SAVEPOINT active_record_1
323681
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323682
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323684
+  (0.0ms) SAVEPOINT active_record_1
323685
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323686
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323688
+ Processing by Commontator::CommentsController#undelete as HTML
323689
+ Parameters: {"id"=>"1"}
323690
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323691
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323692
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323693
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
323694
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323695
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323696
+  (0.0ms) SAVEPOINT active_record_1
323697
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323698
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323700
+ Redirected to http://test.host/commontator/threads/2
323701
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
323702
+  (0.0ms) SAVEPOINT active_record_1
323703
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323705
+  (0.0ms) SAVEPOINT active_record_1
323706
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323707
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323708
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323709
+  (0.0ms) SAVEPOINT active_record_1
323710
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323711
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323713
+ Processing by Commontator::CommentsController#undelete as HTML
323714
+ Parameters: {"id"=>"1"}
323715
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323716
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323717
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323718
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323719
+  (0.0ms) SAVEPOINT active_record_1
323720
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323721
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323723
+ Redirected to http://test.host/commontator/threads/2
323724
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
323725
+  (0.0ms) SAVEPOINT active_record_1
323726
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323727
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323729
+ Processing by Commontator::CommentsController#undelete as HTML
323730
+ Parameters: {"id"=>"1"}
323731
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323732
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323733
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323734
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323735
+  (0.0ms) SAVEPOINT active_record_1
323736
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323737
+ SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323739
+ Redirected to http://test.host/commontator/threads/2
323740
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
323741
+  (0.1ms) rollback transaction
323742
+  (0.0ms) begin transaction
323743
+ -------------------------------------------------------------------------
323744
+ Commontator::CommentsController: test_0014_won't upvote unless authorized
323745
+ -------------------------------------------------------------------------
323746
+  (0.0ms) SAVEPOINT active_record_1
323747
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323749
+  (0.0ms) SAVEPOINT active_record_1
323750
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323751
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323752
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323753
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323755
+  (0.0ms) SAVEPOINT active_record_1
323756
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323757
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323759
+ Processing by Commontator::CommentsController#upvote as HTML
323760
+ Parameters: {"id"=>"1"}
323761
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
323762
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323763
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323764
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323765
+ Processing by Commontator::CommentsController#upvote as HTML
323766
+ Parameters: {"id"=>"1"}
323767
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323768
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323769
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323770
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323771
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
323772
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323773
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323774
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323775
+  (0.0ms) SAVEPOINT active_record_1
323776
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323778
+ Processing by Commontator::CommentsController#upvote as HTML
323779
+ Parameters: {"id"=>"1"}
323780
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323781
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323782
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323783
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323784
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
323785
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323786
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323787
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323788
+  (0.1ms) rollback transaction
323789
+  (0.0ms) begin transaction
323790
+ --------------------------------------------------------------------
323791
+ Commontator::CommentsController: test_0015_must upvote if authorized
323792
+ --------------------------------------------------------------------
323793
+  (0.0ms) SAVEPOINT active_record_1
323794
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323796
+  (0.0ms) SAVEPOINT active_record_1
323797
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323798
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323799
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323800
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323802
+  (0.0ms) SAVEPOINT active_record_1
323803
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323804
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
323805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323806
+  (0.0ms) SAVEPOINT active_record_1
323807
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323809
+ Processing by Commontator::CommentsController#upvote as HTML
323810
+ Parameters: {"id"=>"1"}
323811
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323812
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323813
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323814
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323815
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323816
+  (0.0ms) SAVEPOINT active_record_1
323817
+ SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]
323818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323819
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323820
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323821
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323822
+  (0.0ms) SAVEPOINT active_record_1
323823
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323824
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
323825
+ Redirected to http://test.host/commontator/threads/2
323826
+ Completed 302 Found in 21ms (ActiveRecord: 0.9ms)
323827
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323828
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323829
+ Processing by Commontator::CommentsController#upvote as HTML
323830
+ Parameters: {"id"=>"1"}
323831
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323832
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323833
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323834
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323835
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323836
+ ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323837
+  (0.0ms) SAVEPOINT active_record_1
323838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323839
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323840
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323841
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323842
+  (0.0ms) SAVEPOINT active_record_1
323843
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323844
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
323845
+ Redirected to http://test.host/commontator/threads/2
323846
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
323847
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323848
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323849
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323850
+ ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323851
+  (0.0ms) SAVEPOINT active_record_1
323852
+ SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323854
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323855
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323856
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323857
+  (0.0ms) SAVEPOINT active_record_1
323858
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323859
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
323860
+ Processing by Commontator::CommentsController#upvote as HTML
323861
+ Parameters: {"id"=>"1"}
323862
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323863
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323864
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323865
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323866
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323867
+ ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323868
+  (0.0ms) SAVEPOINT active_record_1
323869
+ SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323871
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323872
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323873
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323874
+  (0.0ms) SAVEPOINT active_record_1
323875
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323876
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
323877
+ Redirected to http://test.host/commontator/threads/2
323878
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
323879
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323880
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323881
+  (0.1ms) rollback transaction
323882
+  (0.0ms) begin transaction
323883
+ ---------------------------------------------------------------------------
323884
+ Commontator::CommentsController: test_0016_won't downvote unless authorized
323885
+ ---------------------------------------------------------------------------
323886
+  (0.0ms) SAVEPOINT active_record_1
323887
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323888
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323889
+  (0.0ms) SAVEPOINT active_record_1
323890
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323891
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323892
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323893
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323895
+  (0.0ms) SAVEPOINT active_record_1
323896
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323897
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323899
+ Processing by Commontator::CommentsController#downvote as HTML
323900
+ Parameters: {"id"=>"1"}
323901
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
323902
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323903
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323904
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323905
+ Processing by Commontator::CommentsController#downvote as HTML
323906
+ Parameters: {"id"=>"1"}
323907
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323908
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323909
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323910
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323911
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
323912
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323913
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323914
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323915
+  (0.0ms) SAVEPOINT active_record_1
323916
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323918
+ Processing by Commontator::CommentsController#downvote as HTML
323919
+ Parameters: {"id"=>"1"}
323920
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323921
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323922
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323923
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323924
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
323925
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
323926
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323927
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323928
+  (0.1ms) rollback transaction
323929
+  (0.0ms) begin transaction
323930
+ ----------------------------------------------------------------------
323931
+ Commontator::CommentsController: test_0017_must downvote if authorized
323932
+ ----------------------------------------------------------------------
323933
+  (0.0ms) SAVEPOINT active_record_1
323934
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323936
+  (0.0ms) SAVEPOINT active_record_1
323937
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323938
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323939
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
323940
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323942
+  (0.0ms) SAVEPOINT active_record_1
323943
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323944
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323946
+  (0.0ms) SAVEPOINT active_record_1
323947
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323949
+ Processing by Commontator::CommentsController#downvote as HTML
323950
+ Parameters: {"id"=>"1"}
323951
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323952
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323953
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323954
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323955
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323956
+  (0.0ms) SAVEPOINT active_record_1
323957
+ SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]
323958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323959
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323960
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323961
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323962
+  (0.0ms) SAVEPOINT active_record_1
323963
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323964
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
323965
+ Redirected to http://test.host/commontator/threads/2
323966
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
323967
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323968
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323969
+ Processing by Commontator::CommentsController#downvote as HTML
323970
+ Parameters: {"id"=>"1"}
323971
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
323972
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
323973
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
323974
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
323975
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323976
+ ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323977
+  (0.0ms) SAVEPOINT active_record_1
323978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323979
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323980
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323981
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323982
+  (0.0ms) SAVEPOINT active_record_1
323983
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323984
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
323985
+ Redirected to http://test.host/commontator/threads/2
323986
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
323987
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323988
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323989
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323990
+ ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323991
+  (0.0ms) SAVEPOINT active_record_1
323992
+ SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
323993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
323994
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323995
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323996
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
323997
+  (0.0ms) SAVEPOINT active_record_1
323998
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
323999
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
324000
+ Processing by Commontator::CommentsController#downvote as HTML
324001
+ Parameters: {"id"=>"1"}
324002
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
324003
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
324004
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324005
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
324006
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324007
+ ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324008
+  (0.0ms) SAVEPOINT active_record_1
324009
+ SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324011
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324012
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324013
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324014
+  (0.0ms) SAVEPOINT active_record_1
324015
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324016
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
324017
+ Redirected to http://test.host/commontator/threads/2
324018
+ Completed 302 Found in 29ms (ActiveRecord: 0.7ms)
324019
+  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324020
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324021
+  (0.1ms) rollback transaction
324022
+  (0.0ms) begin transaction
324023
+ -------------------------------------------------------------------------
324024
+ Commontator::CommentsController: test_0018_won't unvote unless authorized
324025
+ -------------------------------------------------------------------------
324026
+  (0.0ms) SAVEPOINT active_record_1
324027
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324029
+  (0.0ms) SAVEPOINT active_record_1
324030
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324031
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324032
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324033
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324035
+  (0.0ms) SAVEPOINT active_record_1
324036
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324037
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324039
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324040
+  (0.0ms) SAVEPOINT active_record_1
324041
+ SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]
324042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324043
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324044
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324045
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324046
+  (0.0ms) SAVEPOINT active_record_1
324047
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324048
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
324049
+ Processing by Commontator::CommentsController#unvote as HTML
324050
+ Parameters: {"id"=>"1"}
324051
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
324052
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
324053
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324054
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324055
+ Processing by Commontator::CommentsController#unvote as HTML
324056
+ Parameters: {"id"=>"1"}
324057
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
324058
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
324059
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324060
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
324061
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
324062
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
324063
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324064
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324065
+  (0.0ms) SAVEPOINT active_record_1
324066
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324067
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324068
+ Processing by Commontator::CommentsController#unvote as HTML
324069
+ Parameters: {"id"=>"1"}
324070
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
324071
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
324072
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324073
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
324074
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
324075
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
324076
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324077
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324078
+  (0.1ms) rollback transaction
324079
+  (0.0ms) begin transaction
324080
+ --------------------------------------------------------------------
324081
+ Commontator::CommentsController: test_0019_must unvote if authorized
324082
+ --------------------------------------------------------------------
324083
+  (0.0ms) SAVEPOINT active_record_1
324084
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324086
+  (0.0ms) SAVEPOINT active_record_1
324087
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324088
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324089
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324090
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324091
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324092
+  (0.0ms) SAVEPOINT active_record_1
324093
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324094
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324095
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324096
+  (0.0ms) SAVEPOINT active_record_1
324097
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324099
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324100
+  (0.0ms) SAVEPOINT active_record_1
324101
+ SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]
324102
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324103
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324104
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324105
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324106
+  (0.0ms) SAVEPOINT active_record_1
324107
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324108
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
324109
+ Processing by Commontator::CommentsController#unvote as HTML
324110
+ Parameters: {"id"=>"1"}
324111
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
324112
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
324113
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324114
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
324115
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324116
+ ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324117
+  (0.0ms) SAVEPOINT active_record_1
324118
+ SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]
324119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324120
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324121
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324122
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324123
+  (0.0ms) SAVEPOINT active_record_1
324124
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324125
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
324126
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324127
+ Redirected to http://test.host/commontator/threads/2
324128
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
324129
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324130
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324131
+ Processing by Commontator::CommentsController#unvote as HTML
324132
+ Parameters: {"id"=>"1"}
324133
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
324134
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
324135
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324136
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
324137
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324138
+ Redirected to http://test.host/commontator/threads/2
324139
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
324140
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324141
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324142
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324143
+  (0.0ms) SAVEPOINT active_record_1
324144
+ SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]
324145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324146
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324147
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324148
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324149
+  (0.0ms) SAVEPOINT active_record_1
324150
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324151
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
324152
+ Processing by Commontator::CommentsController#unvote as HTML
324153
+ Parameters: {"id"=>"1"}
324154
+ Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
324155
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
324156
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324157
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
324158
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324159
+ ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324160
+  (0.0ms) SAVEPOINT active_record_1
324161
+ SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]
324162
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324163
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324164
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324165
+  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324166
+  (0.0ms) SAVEPOINT active_record_1
324167
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324168
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
324169
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324170
+ Redirected to http://test.host/commontator/threads/2
324171
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
324172
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324173
+  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
324174
+  (0.1ms) rollback transaction
324175
+  (0.0ms) begin transaction
324176
+ ------------------------------------------------------------------------------
324177
+ Commontator::CommentsController: test_0020_won't send mail if recipients empty
324178
+ ------------------------------------------------------------------------------
324179
+  (0.0ms) SAVEPOINT active_record_1
324180
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324182
+  (0.0ms) SAVEPOINT active_record_1
324183
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324184
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324185
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324186
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324188
+  (0.0ms) SAVEPOINT active_record_1
324189
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324190
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324192
+  (0.0ms) SAVEPOINT active_record_1
324193
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324195
+ Processing by Commontator::CommentsController#create as HTML
324196
+ Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
324197
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324198
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324199
+  (0.0ms) SAVEPOINT active_record_1
324200
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324201
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324203
+  (0.0ms) SAVEPOINT active_record_1
324204
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]
324205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324206
+ Redirected to http://test.host/commontator/threads/2
324207
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
324208
+  (0.1ms) rollback transaction
324209
+  (0.0ms) begin transaction
324210
+ ---------------------------------------------------------------------------------
324211
+ Commontator::CommentsController: test_0021_must send mail if recipients not empty
324212
+ ---------------------------------------------------------------------------------
324213
+  (0.0ms) SAVEPOINT active_record_1
324214
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324216
+  (0.0ms) SAVEPOINT active_record_1
324217
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324218
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324219
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324220
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324222
+  (0.0ms) SAVEPOINT active_record_1
324223
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324224
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324226
+  (0.0ms) SAVEPOINT active_record_1
324227
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324229
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]
324230
+  (0.0ms) SAVEPOINT active_record_1
324231
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1
324232
+ SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324234
+ Processing by Commontator::CommentsController#create as HTML
324235
+ Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
324236
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324237
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324238
+  (0.0ms) SAVEPOINT active_record_1
324239
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324240
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324242
+  (0.0ms) SAVEPOINT active_record_1
324243
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]
324244
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]
324245
+ SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324247
+ Redirected to http://test.host/commontator/threads/2
324248
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
324249
+  (0.1ms) rollback transaction
324250
+  (0.0ms) begin transaction
324251
+ -----------------------------------------------------------------
324252
+ Commontator::SharedHelper: test_0001_must show commontator thread
324253
+ -----------------------------------------------------------------
324254
+  (0.0ms) SAVEPOINT active_record_1
324255
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324256
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324257
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324258
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324260
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324261
+  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]]
324262
+ Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (9.2ms)
324263
+  (0.1ms) rollback transaction
324264
+  (0.0ms) begin transaction
324265
+ ---------------------------------------------------------------
324266
+ Commontator::Subscription: test_0001_must count unread comments
324267
+ ---------------------------------------------------------------
324268
+  (0.0ms) SAVEPOINT active_record_1
324269
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324271
+  (0.0ms) SAVEPOINT active_record_1
324272
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324273
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324274
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324275
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324277
+  (0.0ms) SAVEPOINT active_record_1
324278
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324280
+  (0.0ms) SAVEPOINT active_record_1
324281
+ SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324282
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324283
+  (0.0ms) SAVEPOINT active_record_1
324284
+ SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324286
+  (0.1ms) rollback transaction
324287
+  (0.0ms) begin transaction
324288
+ ---------------------------------------------------------------------------------
324289
+ Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized
324290
+ ---------------------------------------------------------------------------------
324291
+  (0.0ms) SAVEPOINT active_record_1
324292
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324294
+  (0.0ms) SAVEPOINT active_record_1
324295
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324296
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324297
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324298
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324300
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
324301
+ Parameters: {"thread_id"=>"2"}
324302
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
324303
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324304
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
324305
+ Parameters: {"thread_id"=>"2"}
324306
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324307
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324308
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
324309
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324310
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324311
+  (0.0ms) SAVEPOINT active_record_1
324312
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
324313
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324315
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
324316
+ Parameters: {"thread_id"=>"2"}
324317
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324318
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324319
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324320
+ Redirected to http://test.host/commontator/threads/2
324321
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
324322
+  (0.1ms) rollback transaction
324323
+  (0.0ms) begin transaction
324324
+ ----------------------------------------------------------------------------
324325
+ Commontator::SubscriptionsController: test_0002_must subscribe if authorized
324326
+ ----------------------------------------------------------------------------
324327
+  (0.0ms) SAVEPOINT active_record_1
324328
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324330
+  (0.0ms) SAVEPOINT active_record_1
324331
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324332
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324333
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324334
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324336
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
324337
+ Parameters: {"thread_id"=>"2"}
324338
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324339
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324340
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324341
+  (0.0ms) SAVEPOINT active_record_1
324342
+ Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
324343
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324345
+ Redirected to http://test.host/commontator/threads/2
324346
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
324347
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324348
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324349
+  (0.0ms) SAVEPOINT active_record_1
324350
+ SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]
324351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324352
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
324353
+ Parameters: {"thread_id"=>"2"}
324354
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324355
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324356
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324357
+  (0.0ms) SAVEPOINT active_record_1
324358
+ Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
324359
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324361
+ Redirected to http://test.host/commontator/threads/2
324362
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
324363
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324364
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324365
+  (0.0ms) SAVEPOINT active_record_1
324366
+ SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]
324367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324368
+ Processing by Commontator::SubscriptionsController#subscribe as HTML
324369
+ Parameters: {"thread_id"=>"2"}
324370
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324371
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324372
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324373
+  (0.0ms) SAVEPOINT active_record_1
324374
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
324375
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324376
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324377
+ Redirected to http://test.host/commontator/threads/2
324378
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
324379
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324380
+  (1.5ms) rollback transaction
324381
+  (0.0ms) begin transaction
324382
+ -----------------------------------------------------------------------------------
324383
+ Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized
324384
+ -----------------------------------------------------------------------------------
324385
+  (0.0ms) SAVEPOINT active_record_1
324386
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324388
+  (0.0ms) SAVEPOINT active_record_1
324389
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324390
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324391
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324392
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324394
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324395
+  (0.0ms) SAVEPOINT active_record_1
324396
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
324397
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324399
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
324400
+ Parameters: {"thread_id"=>"2"}
324401
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
324402
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324403
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
324404
+ Parameters: {"thread_id"=>"2"}
324405
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324406
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324407
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
324408
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324409
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324410
+  (0.0ms) SAVEPOINT active_record_1
324411
+ SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]
324412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324413
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
324414
+ Parameters: {"thread_id"=>"2"}
324415
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324416
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324417
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324418
+ Redirected to http://test.host/commontator/threads/2
324419
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
324420
+  (0.1ms) rollback transaction
324421
+  (0.0ms) begin transaction
324422
+ ------------------------------------------------------------------------------
324423
+ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized
324424
+ ------------------------------------------------------------------------------
324425
+  (0.0ms) SAVEPOINT active_record_1
324426
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324428
+  (0.0ms) SAVEPOINT active_record_1
324429
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324430
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324431
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324432
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324434
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324435
+  (0.0ms) SAVEPOINT active_record_1
324436
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
324437
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324439
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
324440
+ Parameters: {"thread_id"=>"2"}
324441
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324442
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324443
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324444
+  (0.0ms) SAVEPOINT active_record_1
324445
+ SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]
324446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324447
+ Redirected to http://test.host/commontator/threads/2
324448
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
324449
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324450
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324451
+  (0.0ms) SAVEPOINT active_record_1
324452
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
324453
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324455
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
324456
+ Parameters: {"thread_id"=>"2"}
324457
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324458
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324459
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324460
+  (0.0ms) SAVEPOINT active_record_1
324461
+ SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]
324462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324463
+ Redirected to http://test.host/commontator/threads/2
324464
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
324465
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324466
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324467
+  (0.0ms) SAVEPOINT active_record_1
324468
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
324469
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324471
+ Processing by Commontator::SubscriptionsController#unsubscribe as HTML
324472
+ Parameters: {"thread_id"=>"2"}
324473
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324474
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324475
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324476
+  (0.0ms) SAVEPOINT active_record_1
324477
+ SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]
324478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324479
+ Redirected to http://test.host/commontator/threads/2
324480
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
324481
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324482
+  (0.1ms) rollback transaction
324483
+  (0.0ms) begin transaction
324484
+ ------------------------------------------------------------------------
324485
+ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail
324486
+ ------------------------------------------------------------------------
324487
+  (0.0ms) SAVEPOINT active_record_1
324488
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324490
+  (0.0ms) SAVEPOINT active_record_1
324491
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324492
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324493
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324494
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324496
+  (0.0ms) SAVEPOINT active_record_1
324497
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324499
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324500
+  (0.0ms) SAVEPOINT active_record_1
324501
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
324502
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324504
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]
324505
+  (0.0ms) SAVEPOINT active_record_1
324506
+ Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1
324507
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324509
+  (0.0ms) SAVEPOINT active_record_1
324510
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
324511
+ SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324513
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]
324514
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
324515
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]
324516
+ Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.6ms)
324517
+
324518
+ Sent mail to Undisclosed Recipients (3.5ms)
324519
+ Date: Wed, 20 Nov 2013 17:00:56 -0600
324520
+ From: no-reply@example.com
324521
+ to: Undisclosed Recipients
324522
+ Message-ID: <528d3f285906e_1371427e8071627@ubuntu.mail>
324523
+ Subject: Anonymous posted a dummy comment on DummyModel #2
324524
+ Mime-Version: 1.0
324525
+ Content-Type: text/html;
324526
+ charset=UTF-8
324527
+ Content-Transfer-Encoding: 7bit
324528
+
324529
+ <h4>Anonymous's dummy comment on DummyModel #2:</h4>
324530
+
324531
+
324532
+ <p>Something</p>
324533
+
324534
+
324535
+ <p><a href="http://test.host/dummy_models/2">Click here</a> to view all comments on DummyModel #2.</p>
324536
+
324537
+  (0.1ms) rollback transaction
324538
+  (0.0ms) begin transaction
324539
+ ----------------------------------------------------------------------
324540
+ Commontator::ThreadsController: test_0001_won't show unless authorized
324541
+ ----------------------------------------------------------------------
324542
+  (0.0ms) SAVEPOINT active_record_1
324543
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324545
+  (0.0ms) SAVEPOINT active_record_1
324546
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324547
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324548
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324549
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324551
+ Processing by Commontator::ThreadsController#show as HTML
324552
+ Parameters: {"id"=>"2"}
324553
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324554
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324555
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]]
324556
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324557
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
324558
+ Processing by Commontator::ThreadsController#show as HTML
324559
+ Parameters: {"id"=>"2"}
324560
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324561
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324562
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]]
324563
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324564
+ Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
324565
+  (0.1ms) rollback transaction
324566
+  (0.0ms) begin transaction
324567
+ -----------------------------------------------------------------
324568
+ Commontator::ThreadsController: test_0002_must show if authorized
324569
+ -----------------------------------------------------------------
324570
+  (0.0ms) SAVEPOINT active_record_1
324571
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324573
+  (0.0ms) SAVEPOINT active_record_1
324574
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324575
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324576
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324577
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324579
+ Processing by Commontator::ThreadsController#show as HTML
324580
+ Parameters: {"id"=>"2"}
324581
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324582
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324583
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]]
324584
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324585
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324586
+ Redirected to http://test.host/dummy_models/2
324587
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
324588
+ Processing by Commontator::ThreadsController#show as HTML
324589
+ Parameters: {"id"=>"2"}
324590
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324591
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324592
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]]
324593
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324594
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324595
+ Redirected to http://test.host/dummy_models/2
324596
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
324597
+ Processing by Commontator::ThreadsController#show as HTML
324598
+ Parameters: {"id"=>"2"}
324599
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324600
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324601
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]]
324602
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324603
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
324604
+ Redirected to http://test.host/dummy_models/2
324605
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
324606
+  (0.1ms) rollback transaction
324607
+  (0.0ms) begin transaction
324608
+ --------------------------------------------------------------------------------
324609
+ Commontator::ThreadsController: test_0003_won't close unless authorized and open
324610
+ --------------------------------------------------------------------------------
324611
+  (0.0ms) SAVEPOINT active_record_1
324612
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324614
+  (0.0ms) SAVEPOINT active_record_1
324615
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324616
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324617
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324618
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324620
+ Processing by Commontator::ThreadsController#close as HTML
324621
+ Parameters: {"id"=>"2"}
324622
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
324623
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
324624
+ Processing by Commontator::ThreadsController#close as HTML
324625
+ Parameters: {"id"=>"2"}
324626
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324627
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324628
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
324629
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
324630
+ Processing by Commontator::ThreadsController#close as HTML
324631
+ Parameters: {"id"=>"2"}
324632
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324633
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324634
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
324635
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
324636
+  (0.0ms) SAVEPOINT active_record_1
324637
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324638
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324640
+ Processing by Commontator::ThreadsController#close as HTML
324641
+ Parameters: {"id"=>"2"}
324642
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324643
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324644
+ Redirected to http://test.host/commontator/threads/2
324645
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
324646
+  (0.1ms) rollback transaction
324647
+  (0.0ms) begin transaction
324648
+ ---------------------------------------------------------------------------
324649
+ Commontator::ThreadsController: test_0004_must close if authorized and open
324650
+ ---------------------------------------------------------------------------
324651
+  (0.0ms) SAVEPOINT active_record_1
324652
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324654
+  (0.0ms) SAVEPOINT active_record_1
324655
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324656
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324657
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324658
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324660
+ Processing by Commontator::ThreadsController#close as HTML
324661
+ Parameters: {"id"=>"2"}
324662
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324663
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324664
+  (0.0ms) SAVEPOINT active_record_1
324665
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324666
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324668
+ Redirected to http://test.host/commontator/threads/2
324669
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
324670
+  (0.0ms) SAVEPOINT active_record_1
324671
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324672
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324674
+ Processing by Commontator::ThreadsController#close as HTML
324675
+ Parameters: {"id"=>"2"}
324676
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324677
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324678
+  (0.0ms) SAVEPOINT active_record_1
324679
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324680
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324682
+ Redirected to http://test.host/commontator/threads/2
324683
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
324684
+  (0.1ms) rollback transaction
324685
+  (0.0ms) begin transaction
324686
+ -----------------------------------------------------------------------------------
324687
+ Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed
324688
+ -----------------------------------------------------------------------------------
324689
+  (0.0ms) SAVEPOINT active_record_1
324690
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324692
+  (0.0ms) SAVEPOINT active_record_1
324693
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324694
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324695
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324696
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324697
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324698
+  (0.0ms) SAVEPOINT active_record_1
324699
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324700
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324702
+ Processing by Commontator::ThreadsController#reopen as HTML
324703
+ Parameters: {"id"=>"2"}
324704
+ Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
324705
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
324706
+ Processing by Commontator::ThreadsController#reopen as HTML
324707
+ Parameters: {"id"=>"2"}
324708
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324709
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324710
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
324711
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
324712
+ Processing by Commontator::ThreadsController#reopen as HTML
324713
+ Parameters: {"id"=>"2"}
324714
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324715
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324716
+ Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
324717
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
324718
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324719
+  (0.0ms) SAVEPOINT active_record_1
324720
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324721
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324723
+ Processing by Commontator::ThreadsController#reopen as HTML
324724
+ Parameters: {"id"=>"2"}
324725
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324726
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324727
+ Redirected to http://test.host/commontator/threads/2
324728
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
324729
+  (0.1ms) rollback transaction
324730
+  (0.0ms) begin transaction
324731
+ ------------------------------------------------------------------------------
324732
+ Commontator::ThreadsController: test_0006_must reopen if authorized and closed
324733
+ ------------------------------------------------------------------------------
324734
+  (0.0ms) SAVEPOINT active_record_1
324735
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324737
+  (0.0ms) SAVEPOINT active_record_1
324738
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324739
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324740
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324741
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324743
+  (0.0ms) SAVEPOINT active_record_1
324744
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324745
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324747
+ Processing by Commontator::ThreadsController#reopen as HTML
324748
+ Parameters: {"id"=>"2"}
324749
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324750
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324751
+  (0.0ms) SAVEPOINT active_record_1
324752
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324753
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324755
+ Redirected to http://test.host/commontator/threads/2
324756
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
324757
+  (0.0ms) SAVEPOINT active_record_1
324758
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324759
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324761
+ Processing by Commontator::ThreadsController#reopen as HTML
324762
+ Parameters: {"id"=>"2"}
324763
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
324764
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324765
+  (0.0ms) SAVEPOINT active_record_1
324766
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324767
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324769
+ Redirected to http://test.host/commontator/threads/2
324770
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
324771
+  (0.1ms) rollback transaction
324772
+  (0.0ms) begin transaction
324773
+ -----------------------------------------------------------------
324774
+ Commontator::ThreadsHelper: test_0001_must print commontable name
324775
+ -----------------------------------------------------------------
324776
+  (0.0ms) SAVEPOINT active_record_1
324777
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324779
+  (0.0ms) SAVEPOINT active_record_1
324780
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324781
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324782
+ Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324783
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324785
+  (0.1ms) rollback transaction
324786
+  (0.0ms) begin transaction
324787
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324788
+  (18.4ms) commit transaction
324789
+  (0.1ms) begin transaction
324790
+ SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324791
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
324792
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324793
+ SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324794
+  (4.7ms) commit transaction
324795
+  (0.0ms) begin transaction
324796
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324797
+ SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324798
+  (3.8ms) commit transaction
324799
+  (0.1ms) begin transaction
324800
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324801
+ SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324802
+  (3.9ms) commit transaction
324803
+  (0.1ms) begin transaction
324804
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324805
+  (3.8ms) commit transaction
324806
+  (0.1ms) begin transaction
324807
+ SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324808
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]]
324809
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324810
+ SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324811
+  (4.4ms) commit transaction
324812
+  (0.1ms) begin transaction
324813
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324814
+  (3.7ms) commit transaction
324815
+  (0.1ms) begin transaction
324816
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324817
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]]
324818
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324819
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324820
+  (3.9ms) commit transaction
324821
+ Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]
324822
+  (0.1ms) begin transaction
324823
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1
324824
+ SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324825
+  (4.0ms) commit transaction
324826
+  (0.0ms) begin transaction
324827
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324828
+  (3.7ms) commit transaction
324829
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]
324830
+  (0.0ms) begin transaction
324831
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1
324832
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324833
+  (4.4ms) commit transaction
324834
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]
324835
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]
324836
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]
324837
+  (0.1ms) begin transaction
324838
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324839
+  (4.6ms) commit transaction
324840
+  (0.1ms) begin transaction
324841
+ SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324842
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]]
324843
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324844
+ SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324845
+  (5.0ms) commit transaction
324846
+  (0.1ms) begin transaction
324847
+ Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 5) LIMIT 1
324848
+ SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324849
+  (5.3ms) commit transaction
324850
+ Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]
324851
+  (0.1ms) begin transaction
324852
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]]
324853
+ SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324854
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324855
+ SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324856
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]
324857
+  (5.4ms) commit transaction
324858
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]
324859
+ DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]]
324860
+ Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]]
324861
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]
324862
+  (0.1ms) begin transaction
324863
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324864
+  (4.8ms) commit transaction
324865
+  (0.1ms) begin transaction
324866
+ SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324867
+ DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]]
324868
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324869
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324870
+  (4.3ms) commit transaction
324871
+ Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]
324872
+  (0.1ms) begin transaction
324873
+ Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1
324874
+ SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324875
+  (4.7ms) commit transaction
324876
+  (0.1ms) begin transaction
324877
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324878
+  (4.2ms) commit transaction
324879
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]
324880
+  (0.1ms) begin transaction
324881
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1
324882
+ SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324883
+  (4.4ms) commit transaction
324884
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]
324885
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]
324886
+  (0.0ms) begin transaction
324887
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324888
+  (3.8ms) commit transaction
324889
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]
324890
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]
324891
+  (0.0ms) begin transaction
324892
+ SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]
324893
+  (5.4ms) commit transaction
324894
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]
324895
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]
324896
+  (0.0ms) begin transaction
324897
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324898
+  (4.1ms) commit transaction
324899
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]
324900
+  (0.0ms) begin transaction
324901
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324902
+  (4.1ms) commit transaction
324903
+  (0.0ms) begin transaction
324904
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324905
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]]
324906
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324907
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324908
+  (5.1ms) commit transaction
324909
+  (0.0ms) begin transaction
324910
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 8) LIMIT 1
324911
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324912
+  (11.9ms) commit transaction
324913
+  (0.0ms) begin transaction
324914
+ Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 8) LIMIT 1
324915
+ SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324916
+  (4.3ms) commit transaction
324917
+ Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]
324918
+  (0.0ms) begin transaction
324919
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324920
+  (3.4ms) commit transaction
324921
+  (0.0ms) begin transaction
324922
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324923
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]]
324924
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324925
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324926
+  (3.9ms) commit transaction
324927
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]
324928
+  (0.0ms) begin transaction
324929
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1
324930
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324931
+  (4.3ms) commit transaction
324932
+  (0.0ms) begin transaction
324933
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324934
+  (4.0ms) commit transaction
324935
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]
324936
+  (0.0ms) begin transaction
324937
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1
324938
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324939
+  (4.2ms) commit transaction
324940
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]
324941
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]]
324942
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]
324943
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]
324944
+ Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]]
324945
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]
324946
+  (0.0ms) begin transaction
324947
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324948
+  (4.1ms) commit transaction
324949
+  (0.0ms) begin transaction
324950
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324951
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]]
324952
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324953
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324954
+  (4.4ms) commit transaction
324955
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]
324956
+  (1.7ms) begin transaction
324957
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1
324958
+ SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324959
+  (5.5ms) commit transaction
324960
+  (0.0ms) begin transaction
324961
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324962
+  (4.5ms) commit transaction
324963
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
324964
+  (0.0ms) begin transaction
324965
+ Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1
324966
+ SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324967
+  (5.1ms) commit transaction
324968
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]
324969
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
324970
+  (0.0ms) begin transaction
324971
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]]
324972
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]
324973
+ DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]
324974
+ SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324975
+  (4.3ms) commit transaction
324976
+  (0.0ms) begin transaction
324977
+ SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324978
+  (4.0ms) commit transaction
324979
+  (0.0ms) begin transaction
324980
+ SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324981
+  (4.4ms) commit transaction
324982
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]
324983
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
324984
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
324985
+ Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
324986
+  (0.0ms) begin transaction
324987
+ SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324988
+  (4.3ms) commit transaction
324989
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]
324990
+ Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
324991
+  (0.0ms) begin transaction
324992
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324993
+  (4.5ms) commit transaction
324994
+  (0.0ms) begin transaction
324995
+ SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324996
+ DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]]
324997
+ Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
324998
+ SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
324999
+  (4.7ms) commit transaction