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 +4 -4
- data/README.md +20 -12
- data/db/migrate/0_install_commontator.rb +3 -3
- data/db/migrate/0_install_commontator.rb~ +50 -0
- data/lib/commontator/version.rb +1 -1
- data/lib/commontator/version.rb~ +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +2081 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 513288c6970326e146fdadf570df804669054b3f
|
4
|
+
data.tar.gz: 6ffb45e5c277a305a77fe46303224b71405f20fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
-
|
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
|
-
|
102
|
-
If
|
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
|
109
|
-
|
110
|
-
|
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
|
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
|
-
|
133
|
-
|
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
|
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, [:
|
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, [:
|
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, [:
|
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
|
data/lib/commontator/version.rb
CHANGED
data/lib/commontator/version.rb~
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -322916,3 +322916,2084 @@ Commontator::ThreadsHelper: test_0001_must print commontable name
|
|
322916
322916
|
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 16], ["subscriber_type", "DummyUser"]]
|
322917
322917
|
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 11]]
|
322918
322918
|
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 16]]
|
322919
|
+
[1m[36m (12.1ms)[0m [1mCREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) [0m
|
322920
|
+
[1m[35m (5.5ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")
|
322921
|
+
[1m[36m (5.1ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m
|
322922
|
+
[1m[35m (5.3ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")
|
322923
|
+
[1m[36m (5.1ms)[0m [1mCREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")[0m
|
322924
|
+
[1m[35m (5.1ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")
|
322925
|
+
[1m[36m (5.4ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
322926
|
+
[1m[35m (6.6ms)[0m 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
|
+
[1m[36m (5.5ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
322928
|
+
[1m[35m (5.1ms)[0m CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)
|
322929
|
+
[1m[36m (5.8ms)[0m [1mCREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")[0m
|
322930
|
+
[1m[35m (5.9ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
322931
|
+
[1m[36m (6.0ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
322932
|
+
[1m[35m (6.0ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)
|
322933
|
+
[1m[36m (5.2ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
322934
|
+
[1m[35m (5.9ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
322935
|
+
[1m[36m (5.9ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
322936
|
+
[1m[35m (5.4ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
322937
|
+
[1m[36m (5.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
322938
|
+
[1m[35m (5.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
322939
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
322940
|
+
[1m[35m (4.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3')
|
322941
|
+
[1m[36m (4.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('2')[0m
|
322942
|
+
[1m[35m (4.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
322943
|
+
[1m[36m (4.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
322944
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322945
|
+
[1m[35mSQL (1.4ms)[0m 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
|
+
[1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 1]]
|
322947
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
322948
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
322949
|
+
[1m[35m (10.6ms)[0m commit transaction
|
322950
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322951
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (5.6ms)[0m [1mcommit transaction[0m
|
322953
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322954
|
+
--------------------------------------------------------------------
|
322955
|
+
Commontator::ApplicationHelper: test_0001_must print javascript proc
|
322956
|
+
--------------------------------------------------------------------
|
322957
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322958
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322959
|
+
-------------------------------------------------------------------------------
|
322960
|
+
Commontator::Comment: test_0001_must be votable if acts_as_votable is installed
|
322961
|
+
-------------------------------------------------------------------------------
|
322962
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322963
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
322965
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
322966
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
322968
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
322969
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
322970
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
322971
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
322972
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322973
|
+
-----------------------------------------------------------------
|
322974
|
+
Commontator::Comment: test_0002_must know if it has been modified
|
322975
|
+
-----------------------------------------------------------------
|
322976
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
322977
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322979
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322980
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
322982
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
322983
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
322984
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322985
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322986
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
322987
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322989
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322990
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
322991
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
322992
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322993
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
322994
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322995
|
+
----------------------------------------------------------------
|
322996
|
+
Commontator::Comment: test_0003_must know if it has been deleted
|
322997
|
+
----------------------------------------------------------------
|
322998
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322999
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323001
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323002
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323004
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323005
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323006
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323007
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323008
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323009
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323012
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323013
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323014
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323015
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323016
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323017
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323018
|
+
-----------------------------------------------------------
|
323019
|
+
Commontator::Comment: test_0004_must make proper timestamps
|
323020
|
+
-----------------------------------------------------------
|
323021
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323022
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323024
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323025
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323027
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323028
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323029
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323030
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323031
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323032
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323034
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323035
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323036
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323037
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323038
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
323039
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
323040
|
+
--------------------------------------------------------------------------
|
323041
|
+
Commontator::CommentsController: test_0001_won't get new unless authorized
|
323042
|
+
--------------------------------------------------------------------------
|
323043
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323044
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323046
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323047
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323049
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
323050
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323051
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323052
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323053
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323054
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
323062
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323063
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
323064
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323065
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323066
|
+
---------------------------------------------------------------------
|
323067
|
+
Commontator::CommentsController: test_0002_must get new if authorized
|
323068
|
+
---------------------------------------------------------------------
|
323069
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323070
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323072
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323073
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323075
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323076
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323077
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323078
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323079
|
+
[1m[36mCommontator::Comment Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323080
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323082
|
+
Processing by Commontator::CommentsController#new as HTML
|
323083
|
+
Parameters: {"thread_id"=>"2"}
|
323084
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
323085
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
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
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
323091
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
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
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
323097
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323098
|
+
Redirected to http://test.host/commontator/threads/2
|
323099
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
323100
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
323101
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
323102
|
+
-------------------------------------------------------------------------
|
323103
|
+
Commontator::CommentsController: test_0003_won't create unless authorized
|
323104
|
+
-------------------------------------------------------------------------
|
323105
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323106
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323108
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323109
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323111
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
323112
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323113
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323114
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323115
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323116
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
323124
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323125
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
323126
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
323127
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
323128
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323130
|
+
Processing by Commontator::CommentsController#create as HTML
|
323131
|
+
Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
|
323132
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
323133
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323134
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
323135
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323136
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323137
|
+
--------------------------------------------------------------------
|
323138
|
+
Commontator::CommentsController: test_0004_must create if authorized
|
323139
|
+
--------------------------------------------------------------------
|
323140
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323141
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323143
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323144
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323146
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323147
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323148
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323149
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323150
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323151
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323153
|
+
Processing by Commontator::CommentsController#create as HTML
|
323154
|
+
Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
|
323155
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
323156
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323157
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323158
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323159
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323161
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323162
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]]
|
323163
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
323169
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323170
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323171
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323172
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Another thing"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323174
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323175
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]
|
323176
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
323182
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323183
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323184
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323185
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323187
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323188
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]]
|
323189
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323190
|
+
Redirected to http://test.host/commontator/threads/2
|
323191
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
323192
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323193
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323194
|
+
-------------------------------------------------------------------------
|
323195
|
+
Commontator::CommentsController: test_0005_won't create if double posting
|
323196
|
+
-------------------------------------------------------------------------
|
323197
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323198
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323200
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323201
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323203
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323204
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323205
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323206
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323207
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323208
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323210
|
+
Processing by Commontator::CommentsController#create as HTML
|
323211
|
+
Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}}
|
323212
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
323213
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323214
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323215
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323216
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
323222
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323223
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323224
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323225
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323227
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323228
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]
|
323229
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
323235
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323236
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323237
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323238
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323242
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323243
|
+
-----------------------------------------------------------------------
|
323244
|
+
Commontator::CommentsController: test_0006_won't edit unless authorized
|
323245
|
+
-----------------------------------------------------------------------
|
323246
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323247
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323249
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323250
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323252
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323253
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323254
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323255
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323256
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323257
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323265
|
+
[1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323266
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323267
|
+
[1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323268
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323269
|
+
Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)
|
323270
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323271
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323273
|
+
Processing by Commontator::CommentsController#edit as HTML
|
323274
|
+
Parameters: {"id"=>"1"}
|
323275
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323276
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323277
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323278
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323279
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323280
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
323281
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323282
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323283
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323285
|
+
Processing by Commontator::CommentsController#edit as HTML
|
323286
|
+
Parameters: {"id"=>"1"}
|
323287
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
323288
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323289
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]]
|
323290
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323291
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
323292
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323293
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323294
|
+
------------------------------------------------------------------
|
323295
|
+
Commontator::CommentsController: test_0007_must edit if authorized
|
323296
|
+
------------------------------------------------------------------
|
323297
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323298
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323300
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323301
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323303
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323304
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323305
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323306
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323307
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323308
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323310
|
+
Processing by Commontator::CommentsController#edit as HTML
|
323311
|
+
Parameters: {"id"=>"1"}
|
323312
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323313
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323314
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323315
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323316
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
323322
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323323
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]]
|
323324
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323325
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
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
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323331
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323332
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323333
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323334
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323335
|
+
Redirected to http://test.host/commontator/threads/2
|
323336
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
323337
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323338
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323339
|
+
-------------------------------------------------------------------------
|
323340
|
+
Commontator::CommentsController: test_0008_won't update unless authorized
|
323341
|
+
-------------------------------------------------------------------------
|
323342
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323343
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323345
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323346
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323348
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323349
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323350
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323351
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323352
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323353
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
323362
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323363
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]]
|
323364
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323365
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323366
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
323367
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
|
323368
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323369
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323371
|
+
Processing by Commontator::CommentsController#update as HTML
|
323372
|
+
Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}}
|
323373
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323374
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323375
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323376
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323377
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323378
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
323379
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]]
|
323380
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323381
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323382
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323384
|
+
Processing by Commontator::CommentsController#update as HTML
|
323385
|
+
Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}}
|
323386
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323387
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323388
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323389
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323390
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
323391
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
|
323392
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323393
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323394
|
+
--------------------------------------------------------------------
|
323395
|
+
Commontator::CommentsController: test_0009_must update if authorized
|
323396
|
+
--------------------------------------------------------------------
|
323397
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323398
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323400
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323401
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323403
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323404
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323405
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323406
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323407
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323408
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323410
|
+
Processing by Commontator::CommentsController#update as HTML
|
323411
|
+
Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}}
|
323412
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323413
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323414
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323415
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323416
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323417
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323418
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323419
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323420
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
323426
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323427
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]]
|
323428
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323429
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323430
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323431
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323432
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
323438
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323439
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]]
|
323440
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323441
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323442
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323443
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323444
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323445
|
+
Redirected to http://test.host/commontator/threads/2
|
323446
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
323447
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323448
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323449
|
+
-----------------------------------------------------------------------------------------
|
323450
|
+
Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted
|
323451
|
+
-----------------------------------------------------------------------------------------
|
323452
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323453
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323455
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323456
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323458
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323459
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323460
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323461
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323462
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323463
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323465
|
+
Processing by Commontator::CommentsController#delete as HTML
|
323466
|
+
Parameters: {"id"=>"1"}
|
323467
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
323468
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
323472
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323473
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]]
|
323474
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323475
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323476
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
323477
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
|
323478
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323479
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323480
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323481
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323483
|
+
Processing by Commontator::CommentsController#delete as HTML
|
323484
|
+
Parameters: {"id"=>"1"}
|
323485
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323486
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323487
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323488
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]]
|
323489
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323490
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323491
|
+
Redirected to http://test.host/commontator/threads/2
|
323492
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
|
323493
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323494
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323495
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323497
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323498
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323499
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323501
|
+
Processing by Commontator::CommentsController#delete as HTML
|
323502
|
+
Parameters: {"id"=>"1"}
|
323503
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323504
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323505
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323506
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323507
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
323508
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
|
323509
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323510
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323511
|
+
------------------------------------------------------------------------------------
|
323512
|
+
Commontator::CommentsController: test_0011_must delete if authorized and not deleted
|
323513
|
+
------------------------------------------------------------------------------------
|
323514
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323515
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323517
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323518
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323520
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323521
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323522
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323523
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323524
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323525
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323527
|
+
Processing by Commontator::CommentsController#delete as HTML
|
323528
|
+
Parameters: {"id"=>"1"}
|
323529
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323530
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323531
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323532
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323533
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323534
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323535
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323536
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323538
|
+
Redirected to http://test.host/commontator/threads/2
|
323539
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
|
323540
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323541
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323543
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323544
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323545
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323547
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323548
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323549
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323551
|
+
Processing by Commontator::CommentsController#delete as HTML
|
323552
|
+
Parameters: {"id"=>"1"}
|
323553
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323554
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323555
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323556
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323557
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323558
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323559
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323561
|
+
Redirected to http://test.host/commontator/threads/2
|
323562
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
323563
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323564
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323565
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323566
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323567
|
+
Processing by Commontator::CommentsController#delete as HTML
|
323568
|
+
Parameters: {"id"=>"1"}
|
323569
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323570
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323571
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323572
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323573
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323574
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323575
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323577
|
+
Redirected to http://test.host/commontator/threads/2
|
323578
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
323579
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
323580
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
323581
|
+
---------------------------------------------------------------------------------------
|
323582
|
+
Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted
|
323583
|
+
---------------------------------------------------------------------------------------
|
323584
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
323585
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323587
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323588
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323590
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
323591
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323592
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323593
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323594
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323595
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323597
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323598
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323599
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]]
|
323605
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
323606
|
+
Parameters: {"id"=>"1"}
|
323607
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323608
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323609
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323610
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]]
|
323611
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323612
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323613
|
+
Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)
|
323614
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
|
323615
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323616
|
+
[1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323617
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323618
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323620
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
323621
|
+
Parameters: {"id"=>"1"}
|
323622
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323623
|
+
[1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323624
|
+
[1m[35mCommontator::Comment Load (0.1ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323625
|
+
[1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323626
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323627
|
+
Redirected to http://test.host/commontator/threads/2
|
323628
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
323629
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
323630
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323632
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323633
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323634
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323636
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
323637
|
+
Parameters: {"id"=>"1"}
|
323638
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323639
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323640
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]
|
323641
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323642
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
323643
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
|
323644
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323645
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323646
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323648
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323649
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323650
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323651
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323652
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323653
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323654
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323655
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323657
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
323658
|
+
Parameters: {"id"=>"1"}
|
323659
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323660
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323661
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323662
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1[0m [["thread_id", 2]]
|
323663
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323664
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
323665
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]]
|
323666
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
323667
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
323668
|
+
----------------------------------------------------------------------------------
|
323669
|
+
Commontator::CommentsController: test_0013_must undelete if authorized and deleted
|
323670
|
+
----------------------------------------------------------------------------------
|
323671
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323672
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323674
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323675
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323677
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
323678
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323679
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323680
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323681
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323682
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323684
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323685
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323686
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323688
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
323689
|
+
Parameters: {"id"=>"1"}
|
323690
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
323691
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323692
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323693
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]
|
323694
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323695
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323696
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323697
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323698
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1[0m [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323699
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323700
|
+
Redirected to http://test.host/commontator/threads/2
|
323701
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
323702
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323703
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323705
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323706
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323707
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323709
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323710
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323711
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323713
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
323714
|
+
Parameters: {"id"=>"1"}
|
323715
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323716
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323717
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323718
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323719
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323720
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323721
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323722
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323723
|
+
Redirected to http://test.host/commontator/threads/2
|
323724
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
323725
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323726
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323727
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323729
|
+
Processing by Commontator::CommentsController#undelete as HTML
|
323730
|
+
Parameters: {"id"=>"1"}
|
323731
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323732
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323733
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323734
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323735
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323736
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323737
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323738
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323739
|
+
Redirected to http://test.host/commontator/threads/2
|
323740
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
323741
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
323742
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
323743
|
+
-------------------------------------------------------------------------
|
323744
|
+
Commontator::CommentsController: test_0014_won't upvote unless authorized
|
323745
|
+
-------------------------------------------------------------------------
|
323746
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323747
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323749
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323750
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323752
|
+
[1m[35mCommontator::Thread Exists (0.0ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
323753
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323754
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323755
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323756
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323757
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]]
|
323763
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323764
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323765
|
+
Processing by Commontator::CommentsController#upvote as HTML
|
323766
|
+
Parameters: {"id"=>"1"}
|
323767
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323768
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323769
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323770
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323771
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
323772
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
|
323773
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323774
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323775
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323776
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323778
|
+
Processing by Commontator::CommentsController#upvote as HTML
|
323779
|
+
Parameters: {"id"=>"1"}
|
323780
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323781
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323782
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323783
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323784
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
323785
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
|
323786
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323787
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323788
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323789
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323790
|
+
--------------------------------------------------------------------
|
323791
|
+
Commontator::CommentsController: test_0015_must upvote if authorized
|
323792
|
+
--------------------------------------------------------------------
|
323793
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323794
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323796
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323797
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323799
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323800
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]
|
323801
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323802
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323803
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323804
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323806
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323807
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323809
|
+
Processing by Commontator::CommentsController#upvote as HTML
|
323810
|
+
Parameters: {"id"=>"1"}
|
323811
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
323812
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323813
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323814
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323815
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323816
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323817
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323819
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323820
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323821
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323822
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323823
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323824
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323828
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323829
|
+
Processing by Commontator::CommentsController#upvote as HTML
|
323830
|
+
Parameters: {"id"=>"1"}
|
323831
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
323832
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323833
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323834
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323835
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323836
|
+
[1m[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323837
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323838
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323839
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323840
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323841
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323842
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323843
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323844
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323848
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323849
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323850
|
+
[1m[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323851
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323852
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323854
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323855
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323856
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323857
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323858
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323859
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
323860
|
+
Processing by Commontator::CommentsController#upvote as HTML
|
323861
|
+
Parameters: {"id"=>"1"}
|
323862
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323863
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323864
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323865
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323866
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323867
|
+
[1m[36mActsAsVotable::Vote Load (0.0ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323868
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323869
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
323870
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323871
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323872
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323873
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323874
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323875
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323876
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323880
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323881
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323882
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323883
|
+
---------------------------------------------------------------------------
|
323884
|
+
Commontator::CommentsController: test_0016_won't downvote unless authorized
|
323885
|
+
---------------------------------------------------------------------------
|
323886
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323887
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323889
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323890
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323892
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
323893
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
323894
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323895
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323896
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323897
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323899
|
+
Processing by Commontator::CommentsController#downvote as HTML
|
323900
|
+
Parameters: {"id"=>"1"}
|
323901
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
323902
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
|
323903
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323904
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323905
|
+
Processing by Commontator::CommentsController#downvote as HTML
|
323906
|
+
Parameters: {"id"=>"1"}
|
323907
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
323908
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323909
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323910
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323911
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
323912
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]]
|
323913
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323914
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323915
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323916
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323918
|
+
Processing by Commontator::CommentsController#downvote as HTML
|
323919
|
+
Parameters: {"id"=>"1"}
|
323920
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
323921
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
323922
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323923
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
323924
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
323925
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]]
|
323926
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323927
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323928
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
323929
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
323930
|
+
----------------------------------------------------------------------
|
323931
|
+
Commontator::CommentsController: test_0017_must downvote if authorized
|
323932
|
+
----------------------------------------------------------------------
|
323933
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323934
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323936
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323937
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
323939
|
+
[1m[35mCommontator::Thread Exists (0.0ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
323940
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
323941
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323942
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323943
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323944
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323946
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323947
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323949
|
+
Processing by Commontator::CommentsController#downvote as HTML
|
323950
|
+
Parameters: {"id"=>"1"}
|
323951
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323952
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323953
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323954
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323955
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323956
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323957
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323959
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323960
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323961
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323962
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323963
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323964
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
323965
|
+
Redirected to http://test.host/commontator/threads/2
|
323966
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
323967
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323968
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323969
|
+
Processing by Commontator::CommentsController#downvote as HTML
|
323970
|
+
Parameters: {"id"=>"1"}
|
323971
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
323972
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
323973
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
323974
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
323975
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323976
|
+
[1m[36mActsAsVotable::Vote Load (0.0ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323977
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323978
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323979
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323980
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323981
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323982
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
323983
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
323984
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
323985
|
+
Redirected to http://test.host/commontator/threads/2
|
323986
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
|
323987
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323988
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323989
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323990
|
+
[1m[36mActsAsVotable::Vote Load (0.0ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323991
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323992
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1[0m [["vote_flag", true], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
323993
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
323994
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323995
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323996
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
323997
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
323998
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
323999
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
324000
|
+
Processing by Commontator::CommentsController#downvote as HTML
|
324001
|
+
Parameters: {"id"=>"1"}
|
324002
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
324003
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
324004
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324005
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
324006
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324007
|
+
[1m[35mActsAsVotable::Vote Load (0.0ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324008
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324009
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324011
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324012
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324013
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324014
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324015
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
324016
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
324017
|
+
Redirected to http://test.host/commontator/threads/2
|
324018
|
+
Completed 302 Found in 29ms (ActiveRecord: 0.7ms)
|
324019
|
+
[1m[35m (1.5ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324020
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324021
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
324022
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324023
|
+
-------------------------------------------------------------------------
|
324024
|
+
Commontator::CommentsController: test_0018_won't unvote unless authorized
|
324025
|
+
-------------------------------------------------------------------------
|
324026
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324027
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324029
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324030
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324032
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324033
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324034
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324035
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324036
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
324037
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324039
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324040
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324041
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324043
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324044
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324045
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324046
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324047
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
324048
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", 1]]
|
324053
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324054
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324055
|
+
Processing by Commontator::CommentsController#unvote as HTML
|
324056
|
+
Parameters: {"id"=>"1"}
|
324057
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
324058
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
324059
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324060
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
324061
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
324062
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
|
324063
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324064
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324065
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324066
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324068
|
+
Processing by Commontator::CommentsController#unvote as HTML
|
324069
|
+
Parameters: {"id"=>"1"}
|
324070
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
324071
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
324072
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324073
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
324074
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
324075
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]
|
324076
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324077
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324078
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
324079
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324080
|
+
--------------------------------------------------------------------
|
324081
|
+
Commontator::CommentsController: test_0019_must unvote if authorized
|
324082
|
+
--------------------------------------------------------------------
|
324083
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324084
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324086
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324087
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324089
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324090
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324091
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324092
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324093
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
324094
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324096
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324097
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324099
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324100
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324101
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324103
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324104
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324105
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324106
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324107
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
324108
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
324109
|
+
Processing by Commontator::CommentsController#unvote as HTML
|
324110
|
+
Parameters: {"id"=>"1"}
|
324111
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
324112
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
324113
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324114
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
324115
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324116
|
+
[1m[35mActsAsVotable::Vote Load (0.1ms)[0m SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324117
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324118
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]
|
324119
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324120
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324121
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324122
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324123
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324124
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
324125
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
324126
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324130
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324131
|
+
Processing by Commontator::CommentsController#unvote as HTML
|
324132
|
+
Parameters: {"id"=>"1"}
|
324133
|
+
[1m[36mCommontator::Comment Load (0.0ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1[0m [["id", "1"]]
|
324134
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]]
|
324135
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324136
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
324137
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324138
|
+
Redirected to http://test.host/commontator/threads/2
|
324139
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
|
324140
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324141
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324142
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324143
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324144
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324146
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324147
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324148
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324149
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324150
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
324151
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
324152
|
+
Processing by Commontator::CommentsController#unvote as HTML
|
324153
|
+
Parameters: {"id"=>"1"}
|
324154
|
+
[1m[35mCommontator::Comment Load (0.0ms)[0m SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]]
|
324155
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 2]]
|
324156
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324157
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
324158
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324159
|
+
[1m[36mActsAsVotable::Vote Load (0.0ms)[0m [1mSELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324160
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324161
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "votes" WHERE "votes"."id" = ?[0m [["id", 2]]
|
324162
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324163
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324164
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324165
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324166
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324167
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
324168
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
324169
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ?[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324170
|
+
Redirected to http://test.host/commontator/threads/2
|
324171
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
|
324172
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324173
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL[0m [["votable_id", 1], ["votable_type", "Commontator::Comment"]]
|
324174
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
324175
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324176
|
+
------------------------------------------------------------------------------
|
324177
|
+
Commontator::CommentsController: test_0020_won't send mail if recipients empty
|
324178
|
+
------------------------------------------------------------------------------
|
324179
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324180
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324182
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324183
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324185
|
+
[1m[35mCommontator::Thread Exists (0.0ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324186
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324187
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324188
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324189
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
324190
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324192
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324193
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324195
|
+
Processing by Commontator::CommentsController#create as HTML
|
324196
|
+
Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
|
324197
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324198
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324199
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324200
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
324201
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324203
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324204
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]]
|
324205
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324206
|
+
Redirected to http://test.host/commontator/threads/2
|
324207
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
|
324208
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
324209
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324210
|
+
---------------------------------------------------------------------------------
|
324211
|
+
Commontator::CommentsController: test_0021_must send mail if recipients not empty
|
324212
|
+
---------------------------------------------------------------------------------
|
324213
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324214
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324216
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324217
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324219
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324220
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324221
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324222
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324223
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
324224
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324226
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324227
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324229
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]
|
324230
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324231
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1[0m
|
324232
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324234
|
+
Processing by Commontator::CommentsController#create as HTML
|
324235
|
+
Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}}
|
324236
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324237
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324238
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324239
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1[0m
|
324240
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324242
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324243
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]]
|
324244
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]
|
324245
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 1], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324246
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324247
|
+
Redirected to http://test.host/commontator/threads/2
|
324248
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
324249
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
324250
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324251
|
+
-----------------------------------------------------------------
|
324252
|
+
Commontator::SharedHelper: test_0001_must show commontator thread
|
324253
|
+
-----------------------------------------------------------------
|
324254
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324255
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324257
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324258
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324259
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324260
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324261
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
324264
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324265
|
+
---------------------------------------------------------------
|
324266
|
+
Commontator::Subscription: test_0001_must count unread comments
|
324267
|
+
---------------------------------------------------------------
|
324268
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324269
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324271
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324272
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324274
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324275
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324276
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324277
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324278
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324280
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324281
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324283
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324284
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1[0m [["unread", 0], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324285
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324286
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
324287
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324288
|
+
---------------------------------------------------------------------------------
|
324289
|
+
Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized
|
324290
|
+
---------------------------------------------------------------------------------
|
324291
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324292
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324294
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324295
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324297
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324298
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324299
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324300
|
+
Processing by Commontator::SubscriptionsController#subscribe as HTML
|
324301
|
+
Parameters: {"thread_id"=>"2"}
|
324302
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
324303
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324304
|
+
Processing by Commontator::SubscriptionsController#subscribe as HTML
|
324305
|
+
Parameters: {"thread_id"=>"2"}
|
324306
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324307
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324308
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
324309
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324310
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324311
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324312
|
+
[1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
|
324313
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324315
|
+
Processing by Commontator::SubscriptionsController#subscribe as HTML
|
324316
|
+
Parameters: {"thread_id"=>"2"}
|
324317
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324318
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324319
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324320
|
+
Redirected to http://test.host/commontator/threads/2
|
324321
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
324322
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
324323
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324324
|
+
----------------------------------------------------------------------------
|
324325
|
+
Commontator::SubscriptionsController: test_0002_must subscribe if authorized
|
324326
|
+
----------------------------------------------------------------------------
|
324327
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324328
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324330
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324331
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324333
|
+
[1m[35mCommontator::Thread Exists (0.0ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324334
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324335
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324336
|
+
Processing by Commontator::SubscriptionsController#subscribe as HTML
|
324337
|
+
Parameters: {"thread_id"=>"2"}
|
324338
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324339
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324340
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324341
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324342
|
+
[1m[36mCommontator::Subscription Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m
|
324343
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324345
|
+
Redirected to http://test.host/commontator/threads/2
|
324346
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
324347
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324348
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324349
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324350
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]]
|
324351
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324352
|
+
Processing by Commontator::SubscriptionsController#subscribe as HTML
|
324353
|
+
Parameters: {"thread_id"=>"2"}
|
324354
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324355
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324356
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324357
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324358
|
+
[1m[36mCommontator::Subscription Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m
|
324359
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324361
|
+
Redirected to http://test.host/commontator/threads/2
|
324362
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
324363
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324364
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324365
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324366
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 2]]
|
324367
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324368
|
+
Processing by Commontator::SubscriptionsController#subscribe as HTML
|
324369
|
+
Parameters: {"thread_id"=>"2"}
|
324370
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324371
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324372
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324373
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324374
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m
|
324375
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324377
|
+
Redirected to http://test.host/commontator/threads/2
|
324378
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
324379
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324380
|
+
[1m[36m (1.5ms)[0m [1mrollback transaction[0m
|
324381
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324382
|
+
-----------------------------------------------------------------------------------
|
324383
|
+
Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized
|
324384
|
+
-----------------------------------------------------------------------------------
|
324385
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324386
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324388
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324389
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324391
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324392
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324393
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324394
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324395
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324396
|
+
[1m[35mCommontator::Subscription Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1
|
324397
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324403
|
+
Processing by Commontator::SubscriptionsController#unsubscribe as HTML
|
324404
|
+
Parameters: {"thread_id"=>"2"}
|
324405
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324406
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324407
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
324408
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324409
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324410
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324411
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ?[0m [["id", 1]]
|
324412
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324413
|
+
Processing by Commontator::SubscriptionsController#unsubscribe as HTML
|
324414
|
+
Parameters: {"thread_id"=>"2"}
|
324415
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324416
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324417
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324418
|
+
Redirected to http://test.host/commontator/threads/2
|
324419
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
324420
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
324421
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324422
|
+
------------------------------------------------------------------------------
|
324423
|
+
Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized
|
324424
|
+
------------------------------------------------------------------------------
|
324425
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324426
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324428
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324429
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324431
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324432
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324433
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324434
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324435
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324436
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m
|
324437
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324439
|
+
Processing by Commontator::SubscriptionsController#unsubscribe as HTML
|
324440
|
+
Parameters: {"thread_id"=>"2"}
|
324441
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324442
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324443
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324444
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324445
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]
|
324446
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324447
|
+
Redirected to http://test.host/commontator/threads/2
|
324448
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
324449
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324450
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324451
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324452
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m
|
324453
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324455
|
+
Processing by Commontator::SubscriptionsController#unsubscribe as HTML
|
324456
|
+
Parameters: {"thread_id"=>"2"}
|
324457
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324458
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324459
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324460
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324461
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]
|
324462
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324463
|
+
Redirected to http://test.host/commontator/threads/2
|
324464
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
324465
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324466
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324467
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324468
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m
|
324469
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324471
|
+
Processing by Commontator::SubscriptionsController#unsubscribe as HTML
|
324472
|
+
Parameters: {"thread_id"=>"2"}
|
324473
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324474
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324475
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324476
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324477
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]
|
324478
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324479
|
+
Redirected to http://test.host/commontator/threads/2
|
324480
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
324481
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324482
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
324483
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324484
|
+
------------------------------------------------------------------------
|
324485
|
+
Commontator::SubscriptionsMailer: test_0001_must create deliverable mail
|
324486
|
+
------------------------------------------------------------------------
|
324487
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324488
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324490
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324491
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324493
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324494
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324495
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324496
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324497
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324499
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324500
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324501
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1[0m
|
324502
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324504
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]
|
324505
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324506
|
+
[1m[35mCommontator::Subscription Exists (0.0ms)[0m SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1
|
324507
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324509
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324510
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1
|
324511
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324513
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 2]]
|
324514
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]
|
324515
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 3]]
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
324538
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324539
|
+
----------------------------------------------------------------------
|
324540
|
+
Commontator::ThreadsController: test_0001_won't show unless authorized
|
324541
|
+
----------------------------------------------------------------------
|
324542
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324543
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324545
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324546
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324548
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324549
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324550
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324551
|
+
Processing by Commontator::ThreadsController#show as HTML
|
324552
|
+
Parameters: {"id"=>"2"}
|
324553
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324554
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324555
|
+
[1m[36mCommontator::Thread Load (0.1ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]]
|
324556
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324557
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)
|
324558
|
+
Processing by Commontator::ThreadsController#show as HTML
|
324559
|
+
Parameters: {"id"=>"2"}
|
324560
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324561
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324562
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]]
|
324563
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324564
|
+
Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)
|
324565
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
324566
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324567
|
+
-----------------------------------------------------------------
|
324568
|
+
Commontator::ThreadsController: test_0002_must show if authorized
|
324569
|
+
-----------------------------------------------------------------
|
324570
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324571
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324573
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324574
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324576
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324577
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324578
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324579
|
+
Processing by Commontator::ThreadsController#show as HTML
|
324580
|
+
Parameters: {"id"=>"2"}
|
324581
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324582
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324583
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]]
|
324584
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324585
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324591
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324592
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["commontable_id", 2], ["commontable_type", "DummyModel"]]
|
324593
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324594
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
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
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324600
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324601
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]]
|
324602
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324603
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]
|
324604
|
+
Redirected to http://test.host/dummy_models/2
|
324605
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
324606
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
324607
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324608
|
+
--------------------------------------------------------------------------------
|
324609
|
+
Commontator::ThreadsController: test_0003_won't close unless authorized and open
|
324610
|
+
--------------------------------------------------------------------------------
|
324611
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324612
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324614
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324615
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324617
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324618
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324619
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324620
|
+
Processing by Commontator::ThreadsController#close as HTML
|
324621
|
+
Parameters: {"id"=>"2"}
|
324622
|
+
Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)
|
324623
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324627
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324628
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
324629
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]]
|
324630
|
+
Processing by Commontator::ThreadsController#close as HTML
|
324631
|
+
Parameters: {"id"=>"2"}
|
324632
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324633
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324634
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
324635
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]
|
324636
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324637
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324638
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324640
|
+
Processing by Commontator::ThreadsController#close as HTML
|
324641
|
+
Parameters: {"id"=>"2"}
|
324642
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324643
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324644
|
+
Redirected to http://test.host/commontator/threads/2
|
324645
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
324646
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
324647
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324648
|
+
---------------------------------------------------------------------------
|
324649
|
+
Commontator::ThreadsController: test_0004_must close if authorized and open
|
324650
|
+
---------------------------------------------------------------------------
|
324651
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324652
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324654
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324655
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324657
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324658
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324659
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324660
|
+
Processing by Commontator::ThreadsController#close as HTML
|
324661
|
+
Parameters: {"id"=>"2"}
|
324662
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324663
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324664
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324665
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324666
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324668
|
+
Redirected to http://test.host/commontator/threads/2
|
324669
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
324670
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324671
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324672
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324674
|
+
Processing by Commontator::ThreadsController#close as HTML
|
324675
|
+
Parameters: {"id"=>"2"}
|
324676
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324677
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324678
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324679
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324680
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324682
|
+
Redirected to http://test.host/commontator/threads/2
|
324683
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
324684
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
324685
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324686
|
+
-----------------------------------------------------------------------------------
|
324687
|
+
Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed
|
324688
|
+
-----------------------------------------------------------------------------------
|
324689
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324690
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324692
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324693
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324695
|
+
[1m[35mCommontator::Thread Exists (0.0ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324696
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324697
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324698
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324699
|
+
[1m[35mCommontator::Thread Exists (0.0ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324700
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]]
|
324706
|
+
Processing by Commontator::ThreadsController#reopen as HTML
|
324707
|
+
Parameters: {"id"=>"2"}
|
324708
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324709
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324710
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
324711
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m 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
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324715
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324716
|
+
Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)
|
324717
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", 2]]
|
324718
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324719
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324720
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324721
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324722
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324723
|
+
Processing by Commontator::ThreadsController#reopen as HTML
|
324724
|
+
Parameters: {"id"=>"2"}
|
324725
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1[0m [["id", "2"]]
|
324726
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324727
|
+
Redirected to http://test.host/commontator/threads/2
|
324728
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
324729
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
324730
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324731
|
+
------------------------------------------------------------------------------
|
324732
|
+
Commontator::ThreadsController: test_0006_must reopen if authorized and closed
|
324733
|
+
------------------------------------------------------------------------------
|
324734
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324735
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324737
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324738
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]
|
324740
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324741
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324742
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324743
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324744
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324745
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324747
|
+
Processing by Commontator::ThreadsController#reopen as HTML
|
324748
|
+
Parameters: {"id"=>"2"}
|
324749
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324750
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324751
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324752
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324753
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324755
|
+
Redirected to http://test.host/commontator/threads/2
|
324756
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
324757
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324758
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324759
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324761
|
+
Processing by Commontator::ThreadsController#reopen as HTML
|
324762
|
+
Parameters: {"id"=>"2"}
|
324763
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]]
|
324764
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324765
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324766
|
+
[1m[36mCommontator::Thread Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324767
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324769
|
+
Redirected to http://test.host/commontator/threads/2
|
324770
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
324771
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
324772
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324773
|
+
-----------------------------------------------------------------
|
324774
|
+
Commontator::ThreadsHelper: test_0001_must print commontable name
|
324775
|
+
-----------------------------------------------------------------
|
324776
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324777
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324779
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
324780
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324782
|
+
[1m[35mCommontator::Thread Exists (0.0ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324783
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324784
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324785
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
324786
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324787
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (18.4ms)[0m commit transaction
|
324789
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
324790
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 2]]
|
324792
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324793
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324794
|
+
[1m[35m (4.7ms)[0m commit transaction
|
324795
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324796
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324797
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", Wed, 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
|
+
[1m[35m (3.8ms)[0m commit transaction
|
324799
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
324800
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324801
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2[0m [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324802
|
+
[1m[35m (3.9ms)[0m commit transaction
|
324803
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
324804
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
324806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
324807
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]]
|
324809
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324810
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324811
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
324812
|
+
[1m[35m (0.1ms)[0m begin transaction
|
324813
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (3.7ms)[0m commit transaction
|
324815
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
324816
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 4]]
|
324818
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324819
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324820
|
+
[1m[35m (3.9ms)[0m commit transaction
|
324821
|
+
[1m[36mCommontator::Subscription Load (0.2ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]
|
324822
|
+
[1m[35m (0.1ms)[0m begin transaction
|
324823
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1[0m
|
324824
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (4.0ms)[0m [1mcommit transaction[0m
|
324826
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324827
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (3.7ms)[0m commit transaction
|
324829
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]
|
324830
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324831
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1[0m
|
324832
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
324834
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]
|
324835
|
+
[1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 4]]
|
324836
|
+
[1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]
|
324837
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
324838
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (4.6ms)[0m [1mcommit transaction[0m
|
324840
|
+
[1m[35m (0.1ms)[0m begin transaction
|
324841
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.1ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]]
|
324843
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324844
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324845
|
+
[1m[36m (5.0ms)[0m [1mcommit transaction[0m
|
324846
|
+
[1m[35m (0.1ms)[0m begin transaction
|
324847
|
+
[1m[36mCommontator::Comment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 5) LIMIT 1[0m
|
324848
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[36m (5.3ms)[0m [1mcommit transaction[0m
|
324850
|
+
[1m[35mCommontator::Comment Exists (0.2ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]
|
324851
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
324852
|
+
[1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]]
|
324853
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5[0m [["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
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324855
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324856
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]
|
324857
|
+
[1m[36m (5.4ms)[0m [1mcommit transaction[0m
|
324858
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]
|
324859
|
+
[1m[36mDummyModel Load (0.2ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1[0m [["id", 5]]
|
324860
|
+
[1m[35mCommontator::Thread Load (0.1ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]]
|
324861
|
+
[1m[36mCommontator::Comment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1[0m [["thread_id", 6]]
|
324862
|
+
[1m[35m (0.1ms)[0m begin transaction
|
324863
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (4.8ms)[0m commit transaction
|
324865
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
324866
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mDummyModel Load (0.1ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 6]]
|
324868
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324869
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324870
|
+
[1m[35m (4.3ms)[0m commit transaction
|
324871
|
+
[1m[36mCommontator::Subscription Load (0.2ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]
|
324872
|
+
[1m[35m (0.1ms)[0m begin transaction
|
324873
|
+
[1m[36mCommontator::Subscription Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1[0m
|
324874
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (4.7ms)[0m [1mcommit transaction[0m
|
324876
|
+
[1m[35m (0.1ms)[0m begin transaction
|
324877
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (4.2ms)[0m commit transaction
|
324879
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]
|
324880
|
+
[1m[35m (0.1ms)[0m begin transaction
|
324881
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1[0m
|
324882
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
324884
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]
|
324885
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]
|
324886
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324887
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (3.8ms)[0m commit transaction
|
324889
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]
|
324890
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]
|
324891
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324892
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]
|
324893
|
+
[1m[36m (5.4ms)[0m [1mcommit transaction[0m
|
324894
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]
|
324895
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]
|
324896
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324897
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (4.1ms)[0m commit transaction
|
324899
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]
|
324900
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324901
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (4.1ms)[0m commit transaction
|
324903
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324904
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 7]]
|
324906
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324907
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324908
|
+
[1m[35m (5.1ms)[0m commit transaction
|
324909
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324910
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 8) LIMIT 1
|
324911
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something"], ["created_at", Wed, 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
|
+
[1m[35m (11.9ms)[0m commit transaction
|
324913
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324914
|
+
[1m[35mCommontator::Comment Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 8) LIMIT 1
|
324915
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Something else"], ["created_at", Wed, 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
|
+
[1m[35m (4.3ms)[0m commit transaction
|
324917
|
+
[1m[36mCommontator::Comment Load (0.1ms)[0m [1mSELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ?[0m [["thread_id", 8]]
|
324918
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324919
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (3.4ms)[0m commit transaction
|
324921
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324922
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 8]]
|
324924
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324925
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324926
|
+
[1m[35m (3.9ms)[0m commit transaction
|
324927
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]
|
324928
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324929
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1[0m
|
324930
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (4.3ms)[0m [1mcommit transaction[0m
|
324932
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324933
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (4.0ms)[0m commit transaction
|
324935
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]
|
324936
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324937
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1[0m
|
324938
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (4.2ms)[0m [1mcommit transaction[0m
|
324940
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]
|
324941
|
+
[1m[36mCommontator::Thread Load (0.0ms)[0m [1mSELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1[0m [["id", 9]]
|
324942
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]
|
324943
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]
|
324944
|
+
[1m[35mCommontator::Thread Load (0.0ms)[0m SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]]
|
324945
|
+
[1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 13]]
|
324946
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324947
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (4.1ms)[0m commit transaction
|
324949
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324950
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mDummyModel Load (0.0ms)[0m [1mSELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1[0m [["id", 9]]
|
324952
|
+
[1m[35mCommontator::Thread Exists (0.1ms)[0m SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1
|
324953
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (4.4ms)[0m commit transaction
|
324955
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]
|
324956
|
+
[1m[35m (1.7ms)[0m begin transaction
|
324957
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 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[0m
|
324958
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (5.5ms)[0m [1mcommit transaction[0m
|
324960
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324961
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (4.5ms)[0m commit transaction
|
324963
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
|
324964
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324965
|
+
[1m[36mCommontator::Subscription Exists (0.1ms)[0m [1mSELECT 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[0m
|
324966
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (5.1ms)[0m [1mcommit transaction[0m
|
324968
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]
|
324969
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
|
324970
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324971
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ?[0m [["thread_id", 10]]
|
324972
|
+
[1m[35mDummyUser Load (0.0ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]
|
324973
|
+
[1m[36mDummyUser Load (0.0ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1[0m [["id", 15]]
|
324974
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (4.3ms)[0m [1mcommit transaction[0m
|
324976
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324977
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7[0m [["unread", 1], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324978
|
+
[1m[35m (4.0ms)[0m commit transaction
|
324979
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324980
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
324982
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]
|
324983
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
|
324984
|
+
[1m[35mCommontator::Subscription Load (0.0ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
|
324985
|
+
[1m[36mCommontator::Subscription Load (0.0ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
|
324986
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324987
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8[0m [["unread", 0], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324988
|
+
[1m[35m (4.3ms)[0m commit transaction
|
324989
|
+
[1m[36mCommontator::Subscription Load (0.1ms)[0m [1mSELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1[0m [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]
|
324990
|
+
[1m[35mCommontator::Subscription Load (0.1ms)[0m SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]
|
324991
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324992
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (4.5ms)[0m [1mcommit transaction[0m
|
324994
|
+
[1m[35m (0.0ms)[0m begin transaction
|
324995
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mDummyModel Load (0.0ms)[0m SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]]
|
324997
|
+
[1m[36mCommontator::Thread Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1[0m
|
324998
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]
|
324999
|
+
[1m[36m (4.7ms)[0m [1mcommit transaction[0m
|