transcribable 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTA2MjE0N2JhMmFlYjE4ZjFkZmI1OTExMmNjOWVjZGMzZTUyNDhmYQ==
5
+ data.tar.gz: !binary |-
6
+ YWJhYmIyNDgxYjQ0YjhhMmM3MDRlNzNkZGRlYzVlNmFjZTNlZDcyZQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ OTE5YzgxYjEzMTRkNDU3NTQwZmMzNjY2NWI3NGMzMGMzYmU4MDZhNzJkOTU1
10
+ MTZmNDc4MjQwMGVlMjFhNTBmNGM0MzBiNTg5ZjA0NThmMGY0OGZlZTkzMjQ0
11
+ MGNiMjE3NDE3NjdhNDA5Y2ViOGJjYmI5ZmRlNjdjNmUyNjZmNzg=
12
+ data.tar.gz: !binary |-
13
+ NjJlZmExNmE5MTU3Yzc3Njc2Y2VhZDZjYjYxMDgxMmRhYWQwY2Y5MWNkZTJk
14
+ YmFjYWMwMWVkMDhjNmUzZWNlMmVkNWZhMjBhZWM5ODZmZDEzMjdiY2M2NjBh
15
+ OGRhOWQ4N2FhZTA1NGI4ZGExODQ2YjljZGM2MjI4ZmM3ZWMyMWU=
@@ -13,7 +13,7 @@
13
13
 
14
14
  <% transcribable_attrs.each do |col, type| %>
15
15
  <div class="do_something">
16
- <% if [:string, :integer].include?(type) %>
16
+ <% if [:string, :integer, :float, :decimal].include?(type) %>
17
17
  <h2><%= col.titleize %></h2>
18
18
  <%%= label_tag :<%= col %>, "Your attribute description here" %><br />
19
19
  <%%= f.text_field :<%= col %>, {:class => "wwwinput", :tabindex => 3} %>
@@ -1,3 +1,3 @@
1
1
  module Transcribable
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transcribable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Al Shaw
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-16 00:00:00.000000000 Z
11
+ date: 2013-10-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rest-client
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: uuid
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: sqlite3
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -126,8 +117,6 @@ files:
126
117
  - test/dummy/config/routes.rb
127
118
  - test/dummy/config.ru
128
119
  - test/dummy/db/schema.rb
129
- - test/dummy/db/test.sqlite3
130
- - test/dummy/log/test.log
131
120
  - test/dummy/public/404.html
132
121
  - test/dummy/public/422.html
133
122
  - test/dummy/public/500.html
@@ -137,28 +126,28 @@ files:
137
126
  - test/test_helper.rb
138
127
  - test/transcribable_test.rb
139
128
  homepage: https://github.com/propublica/transcribable
140
- licenses: []
129
+ licenses:
130
+ - MIT
131
+ metadata: {}
141
132
  post_install_message:
142
133
  rdoc_options: []
143
134
  require_paths:
144
135
  - lib
145
136
  required_ruby_version: !ruby/object:Gem::Requirement
146
- none: false
147
137
  requirements:
148
138
  - - ! '>='
149
139
  - !ruby/object:Gem::Version
150
140
  version: '0'
151
141
  required_rubygems_version: !ruby/object:Gem::Requirement
152
- none: false
153
142
  requirements:
154
143
  - - ! '>='
155
144
  - !ruby/object:Gem::Version
156
145
  version: '0'
157
146
  requirements: []
158
147
  rubyforge_project:
159
- rubygems_version: 1.8.23
148
+ rubygems_version: 2.1.9
160
149
  signing_key:
161
- specification_version: 3
150
+ specification_version: 4
162
151
  summary: Drop in crowdsourcing for your Rails app.
163
152
  test_files:
164
153
  - test/dummy/app/assets/javascripts/application.js
@@ -189,8 +178,6 @@ test_files:
189
178
  - test/dummy/config/routes.rb
190
179
  - test/dummy/config.ru
191
180
  - test/dummy/db/schema.rb
192
- - test/dummy/db/test.sqlite3
193
- - test/dummy/log/test.log
194
181
  - test/dummy/public/404.html
195
182
  - test/dummy/public/422.html
196
183
  - test/dummy/public/500.html
@@ -199,4 +186,3 @@ test_files:
199
186
  - test/dummy/README.rdoc
200
187
  - test/test_helper.rb
201
188
  - test/transcribable_test.rb
202
- has_rdoc:
Binary file
@@ -1,979 +0,0 @@
1
-  (0.4ms) begin transaction
2
- -----------------------------
3
- TranscribableTest: test_truth
4
- -----------------------------
5
-  (0.1ms) rollback transaction
6
-  (1.5ms) CREATE TABLE "filings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url" varchar(255), "buyer" varchar(255), "amount" integer, "verified" boolean, "notes" text) 
7
-  (1.1ms) CREATE TABLE "transcriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "buyer" varchar(255), "amount" integer, "filing_id" integer, "user_id" varchar(255), "notes" text)
8
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
9
-  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10
-  (0.2ms) SELECT version FROM "schema_migrations"
11
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130710175855')
12
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
-  (0.5ms) begin transaction
14
- -----------------------------
15
- TranscribableTest: test_truth
16
- -----------------------------
17
-  (0.1ms) rollback transaction
18
-  (0.5ms) begin transaction
19
- --------------------------------------------------
20
- TranscribableTest: test_transcribable_table_is_set
21
- --------------------------------------------------
22
-  (0.1ms) rollback transaction
23
-  (0.1ms) begin transaction
24
- -----------------------------
25
- TranscribableTest: test_truth
26
- -----------------------------
27
-  (0.1ms) rollback transaction
28
-  (0.5ms) begin transaction
29
- --------------------------------------------------
30
- TranscribableTest: test_transcribable_table_is_set
31
- --------------------------------------------------
32
-  (0.1ms) rollback transaction
33
-  (0.1ms) begin transaction
34
- -----------------------------
35
- TranscribableTest: test_truth
36
- -----------------------------
37
-  (0.1ms) rollback transaction
38
-  (0.5ms) begin transaction
39
- ---------------------------------------------------
40
- TranscribableTest: test_transcribable_attrs_are_set
41
- ---------------------------------------------------
42
-  (0.1ms) rollback transaction
43
-  (0.1ms) begin transaction
44
- --------------------------------------------------
45
- TranscribableTest: test_transcribable_table_is_set
46
- --------------------------------------------------
47
-  (0.1ms) rollback transaction
48
-  (0.1ms) begin transaction
49
- -----------------------------
50
- TranscribableTest: test_truth
51
- -----------------------------
52
-  (0.1ms) rollback transaction
53
-  (0.5ms) begin transaction
54
- -------------------------------------------
55
- TranscribableTest: test_skipped_attr_is_set
56
- -------------------------------------------
57
-  (0.1ms) rollback transaction
58
-  (0.1ms) begin transaction
59
- ---------------------------------------------------
60
- TranscribableTest: test_transcribable_attrs_are_set
61
- ---------------------------------------------------
62
-  (0.1ms) rollback transaction
63
-  (0.1ms) begin transaction
64
- --------------------------------------------------
65
- TranscribableTest: test_transcribable_table_is_set
66
- --------------------------------------------------
67
-  (0.1ms) rollback transaction
68
-  (0.1ms) begin transaction
69
- -----------------------------
70
- TranscribableTest: test_truth
71
- -----------------------------
72
-  (0.1ms) rollback transaction
73
-  (0.5ms) begin transaction
74
- ----------------------------------------------
75
- TranscribableTest: test_set_verification_level
76
- ----------------------------------------------
77
-  (0.2ms) rollback transaction
78
-  (0.1ms) begin transaction
79
- -------------------------------------------
80
- TranscribableTest: test_skipped_attr_is_set
81
- -------------------------------------------
82
-  (0.1ms) rollback transaction
83
-  (0.1ms) begin transaction
84
- ---------------------------------------------------
85
- TranscribableTest: test_transcribable_attrs_are_set
86
- ---------------------------------------------------
87
-  (0.1ms) rollback transaction
88
-  (0.1ms) begin transaction
89
- --------------------------------------------------
90
- TranscribableTest: test_transcribable_table_is_set
91
- --------------------------------------------------
92
-  (0.1ms) rollback transaction
93
-  (0.1ms) begin transaction
94
- -----------------------------
95
- TranscribableTest: test_truth
96
- -----------------------------
97
-  (0.1ms) rollback transaction
98
-  (0.6ms) begin transaction
99
- ----------------------------------------------
100
- TranscribableTest: test_set_verification_level
101
- ----------------------------------------------
102
-  (0.1ms) rollback transaction
103
-  (0.1ms) begin transaction
104
- -------------------------------------------
105
- TranscribableTest: test_skipped_attr_is_set
106
- -------------------------------------------
107
-  (0.1ms) rollback transaction
108
-  (0.1ms) begin transaction
109
- ---------------------------------------------------
110
- TranscribableTest: test_transcribable_attrs_are_set
111
- ---------------------------------------------------
112
-  (0.1ms) rollback transaction
113
-  (0.1ms) begin transaction
114
- --------------------------------------------------
115
- TranscribableTest: test_transcribable_table_is_set
116
- --------------------------------------------------
117
-  (0.1ms) rollback transaction
118
-  (0.1ms) begin transaction
119
- -----------------------------
120
- TranscribableTest: test_truth
121
- -----------------------------
122
-  (0.1ms) rollback transaction
123
-  (0.5ms) begin transaction
124
- --------------------------------------------------
125
- TranscribableTest: test_assign_documents_correctly
126
- --------------------------------------------------
127
- Filing Load (22.9ms) SELECT "filings".* FROM "filings" WHERE "filings"."id" = ? LIMIT 1 [["id", 1]]
128
-  (0.1ms) rollback transaction
129
-  (0.1ms) begin transaction
130
- ----------------------------------------------
131
- TranscribableTest: test_set_verification_level
132
- ----------------------------------------------
133
-  (0.1ms) rollback transaction
134
-  (0.1ms) begin transaction
135
- -------------------------------------------
136
- TranscribableTest: test_skipped_attr_is_set
137
- -------------------------------------------
138
-  (0.1ms) rollback transaction
139
-  (0.1ms) begin transaction
140
- ---------------------------------------------------
141
- TranscribableTest: test_transcribable_attrs_are_set
142
- ---------------------------------------------------
143
-  (0.1ms) rollback transaction
144
-  (0.1ms) begin transaction
145
- --------------------------------------------------
146
- TranscribableTest: test_transcribable_table_is_set
147
- --------------------------------------------------
148
-  (0.1ms) rollback transaction
149
-  (0.1ms) begin transaction
150
- -----------------------------
151
- TranscribableTest: test_truth
152
- -----------------------------
153
-  (0.1ms) rollback transaction
154
-  (0.5ms) begin transaction
155
- --------------------------------------------------
156
- TranscribableTest: test_assign_documents_correctly
157
- --------------------------------------------------
158
- Filing Load (4.4ms) SELECT "filings".* FROM "filings" WHERE "filings"."id" = ? LIMIT 1 [["id", 1]]
159
-  (0.1ms) rollback transaction
160
-  (0.1ms) begin transaction
161
- ----------------------------------------------
162
- TranscribableTest: test_set_verification_level
163
- ----------------------------------------------
164
-  (0.1ms) rollback transaction
165
-  (0.1ms) begin transaction
166
- -------------------------------------------
167
- TranscribableTest: test_skipped_attr_is_set
168
- -------------------------------------------
169
-  (0.1ms) rollback transaction
170
-  (0.1ms) begin transaction
171
- ---------------------------------------------------
172
- TranscribableTest: test_transcribable_attrs_are_set
173
- ---------------------------------------------------
174
-  (0.1ms) rollback transaction
175
-  (0.1ms) begin transaction
176
- --------------------------------------------------
177
- TranscribableTest: test_transcribable_table_is_set
178
- --------------------------------------------------
179
-  (0.1ms) rollback transaction
180
-  (0.1ms) begin transaction
181
- -----------------------------
182
- TranscribableTest: test_truth
183
- -----------------------------
184
-  (0.1ms) rollback transaction
185
-  (0.5ms) begin transaction
186
- --------------------------------------------------
187
- TranscribableTest: test_assign_documents_correctly
188
- --------------------------------------------------
189
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" ORDER BY "filings"."id" ASC LIMIT 1
190
-  (0.1ms) rollback transaction
191
-  (0.1ms) begin transaction
192
- ----------------------------------------------
193
- TranscribableTest: test_set_verification_level
194
- ----------------------------------------------
195
-  (0.1ms) rollback transaction
196
-  (0.1ms) begin transaction
197
- -------------------------------------------
198
- TranscribableTest: test_skipped_attr_is_set
199
- -------------------------------------------
200
-  (0.1ms) rollback transaction
201
-  (0.1ms) begin transaction
202
- ---------------------------------------------------
203
- TranscribableTest: test_transcribable_attrs_are_set
204
- ---------------------------------------------------
205
-  (0.1ms) rollback transaction
206
-  (0.1ms) begin transaction
207
- --------------------------------------------------
208
- TranscribableTest: test_transcribable_table_is_set
209
- --------------------------------------------------
210
-  (0.1ms) rollback transaction
211
-  (0.1ms) begin transaction
212
- -----------------------------
213
- TranscribableTest: test_truth
214
- -----------------------------
215
-  (0.1ms) rollback transaction
216
-  (0.5ms) begin transaction
217
- --------------------------------------------------
218
- TranscribableTest: test_assign_documents_correctly
219
- --------------------------------------------------
220
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" ORDER BY "filings"."id" ASC LIMIT 1
221
-  (0.1ms) rollback transaction
222
-  (0.1ms) begin transaction
223
- ----------------------------------------------
224
- TranscribableTest: test_set_verification_level
225
- ----------------------------------------------
226
-  (0.1ms) rollback transaction
227
-  (0.1ms) begin transaction
228
- -------------------------------------------
229
- TranscribableTest: test_skipped_attr_is_set
230
- -------------------------------------------
231
-  (0.1ms) rollback transaction
232
-  (0.1ms) begin transaction
233
- ---------------------------------------------------
234
- TranscribableTest: test_transcribable_attrs_are_set
235
- ---------------------------------------------------
236
-  (0.1ms) rollback transaction
237
-  (0.1ms) begin transaction
238
- --------------------------------------------------
239
- TranscribableTest: test_transcribable_table_is_set
240
- --------------------------------------------------
241
-  (0.1ms) rollback transaction
242
-  (0.1ms) begin transaction
243
- -----------------------------
244
- TranscribableTest: test_truth
245
- -----------------------------
246
-  (0.1ms) rollback transaction
247
-  (0.5ms) begin transaction
248
- --------------------------------------------------
249
- TranscribableTest: test_assign_documents_correctly
250
- --------------------------------------------------
251
-  (0.1ms) SELECT COUNT(*) FROM "filings"
252
-  (0.2ms) rollback transaction
253
-  (0.1ms) begin transaction
254
- ----------------------------------------------
255
- TranscribableTest: test_set_verification_level
256
- ----------------------------------------------
257
-  (0.1ms) rollback transaction
258
-  (0.1ms) begin transaction
259
- -------------------------------------------
260
- TranscribableTest: test_skipped_attr_is_set
261
- -------------------------------------------
262
-  (0.1ms) rollback transaction
263
-  (0.1ms) begin transaction
264
- ---------------------------------------------------
265
- TranscribableTest: test_transcribable_attrs_are_set
266
- ---------------------------------------------------
267
-  (0.1ms) rollback transaction
268
-  (0.1ms) begin transaction
269
- --------------------------------------------------
270
- TranscribableTest: test_transcribable_table_is_set
271
- --------------------------------------------------
272
-  (0.1ms) rollback transaction
273
-  (0.1ms) begin transaction
274
- -----------------------------
275
- TranscribableTest: test_truth
276
- -----------------------------
277
-  (0.1ms) rollback transaction
278
-  (0.5ms) begin transaction
279
- --------------------------------------------------
280
- TranscribableTest: test_assign_documents_correctly
281
- --------------------------------------------------
282
-  (0.1ms) SELECT COUNT(*) FROM "filings"
283
-  (0.3ms) rollback transaction
284
-  (0.1ms) begin transaction
285
- ----------------------------------------------
286
- TranscribableTest: test_set_verification_level
287
- ----------------------------------------------
288
-  (0.1ms) rollback transaction
289
-  (0.1ms) begin transaction
290
- -------------------------------------------
291
- TranscribableTest: test_skipped_attr_is_set
292
- -------------------------------------------
293
-  (0.1ms) rollback transaction
294
-  (0.1ms) begin transaction
295
- ---------------------------------------------------
296
- TranscribableTest: test_transcribable_attrs_are_set
297
- ---------------------------------------------------
298
-  (0.1ms) rollback transaction
299
-  (0.1ms) begin transaction
300
- --------------------------------------------------
301
- TranscribableTest: test_transcribable_table_is_set
302
- --------------------------------------------------
303
-  (0.1ms) rollback transaction
304
-  (0.1ms) begin transaction
305
- -----------------------------
306
- TranscribableTest: test_truth
307
- -----------------------------
308
-  (0.1ms) rollback transaction
309
-  (0.5ms) begin transaction
310
- --------------------------------------------------
311
- TranscribableTest: test_assign_documents_correctly
312
- --------------------------------------------------
313
-  (0.1ms) rollback transaction
314
-  (0.1ms) begin transaction
315
- ----------------------------------------------
316
- TranscribableTest: test_set_verification_level
317
- ----------------------------------------------
318
-  (0.1ms) rollback transaction
319
-  (0.1ms) begin transaction
320
- -------------------------------------------
321
- TranscribableTest: test_skipped_attr_is_set
322
- -------------------------------------------
323
-  (0.1ms) rollback transaction
324
-  (0.1ms) begin transaction
325
- ---------------------------------------------------
326
- TranscribableTest: test_transcribable_attrs_are_set
327
- ---------------------------------------------------
328
-  (0.1ms) rollback transaction
329
-  (0.1ms) begin transaction
330
- --------------------------------------------------
331
- TranscribableTest: test_transcribable_table_is_set
332
- --------------------------------------------------
333
-  (0.1ms) rollback transaction
334
-  (0.1ms) begin transaction
335
- -----------------------------
336
- TranscribableTest: test_truth
337
- -----------------------------
338
-  (0.1ms) rollback transaction
339
-  (0.5ms) begin transaction
340
- -------------------------------------------------------------------------------------------------------
341
- TranscribableAssignerTest: test_should_assign_documents_that_aren't_verified_or_transcribed_by_the_user
342
- -------------------------------------------------------------------------------------------------------
343
-  (0.1ms) SAVEPOINT active_record_1
344
- SQL (6.0ms) INSERT INTO "filings" ("id", "url", "verified") VALUES (?, ?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326844-fox-chicago-public-file"], ["verified", true]]
345
-  (0.1ms) RELEASE SAVEPOINT active_record_1
346
-  (0.1ms) SAVEPOINT active_record_1
347
- SQL (0.3ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 2], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
348
-  (0.1ms) RELEASE SAVEPOINT active_record_1
349
-  (0.1ms) SAVEPOINT active_record_1
350
- SQL (0.1ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 3], ["url", "https://www.documentcloud.org/documents/326753-cbs-chicago-public-file"]]
351
-  (0.1ms) RELEASE SAVEPOINT active_record_1
352
-  (0.1ms) SAVEPOINT active_record_1
353
- SQL (0.2ms) INSERT INTO "transcriptions" ("filing_id", "user_id") VALUES (?, ?) [["filing_id", 2], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
354
-  (0.1ms) RELEASE SAVEPOINT active_record_1
355
- Transcription Load (0.2ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."user_id" = '40765bb0cfa90130c5fb442c03361f6e'
356
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE (("filings"."verified" = 'f' OR "filings"."verified" IS NULL)) AND (id NOT IN (2))
357
- SQL (0.2ms) DELETE FROM "filings"
358
- SQL (0.1ms) DELETE FROM "transcriptions"
359
-  (21.3ms) rollback transaction
360
-  (0.1ms) begin transaction
361
- ----------------------------------------------
362
- TranscribableTest: test_set_verification_level
363
- ----------------------------------------------
364
-  (0.1ms) rollback transaction
365
-  (0.1ms) begin transaction
366
- -------------------------------------------
367
- TranscribableTest: test_skipped_attr_is_set
368
- -------------------------------------------
369
-  (0.1ms) rollback transaction
370
-  (0.1ms) begin transaction
371
- ---------------------------------------------------
372
- TranscribableTest: test_transcribable_attrs_are_set
373
- ---------------------------------------------------
374
-  (0.1ms) rollback transaction
375
-  (0.1ms) begin transaction
376
- --------------------------------------------------
377
- TranscribableTest: test_transcribable_table_is_set
378
- --------------------------------------------------
379
-  (0.1ms) rollback transaction
380
-  (0.1ms) begin transaction
381
- -----------------------------
382
- TranscribableTest: test_truth
383
- -----------------------------
384
-  (0.1ms) rollback transaction
385
-  (0.5ms) begin transaction
386
- -------------------------------------------------------------------------------------------------------
387
- TranscribableAssignerTest: test_should_assign_documents_that_aren't_verified_or_transcribed_by_the_user
388
- -------------------------------------------------------------------------------------------------------
389
-  (0.2ms) SAVEPOINT active_record_1
390
- SQL (6.0ms) INSERT INTO "filings" ("id", "url", "verified") VALUES (?, ?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326844-fox-chicago-public-file"], ["verified", true]]
391
-  (0.1ms) RELEASE SAVEPOINT active_record_1
392
-  (0.1ms) SAVEPOINT active_record_1
393
- SQL (0.3ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 2], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
394
-  (0.1ms) RELEASE SAVEPOINT active_record_1
395
-  (0.1ms) SAVEPOINT active_record_1
396
- SQL (0.1ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 3], ["url", "https://www.documentcloud.org/documents/326753-cbs-chicago-public-file"]]
397
-  (0.1ms) RELEASE SAVEPOINT active_record_1
398
-  (0.1ms) SAVEPOINT active_record_1
399
- SQL (0.2ms) INSERT INTO "transcriptions" ("filing_id", "user_id") VALUES (?, ?) [["filing_id", 2], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
400
-  (0.1ms) RELEASE SAVEPOINT active_record_1
401
- Transcription Load (0.1ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."user_id" = '40765bb0cfa90130c5fb442c03361f6e'
402
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE (("filings"."verified" = 'f' OR "filings"."verified" IS NULL)) AND (id NOT IN (2))
403
- SQL (0.1ms) DELETE FROM "filings"
404
- SQL (0.1ms) DELETE FROM "transcriptions"
405
-  (0.7ms) rollback transaction
406
-  (0.1ms) begin transaction
407
- ----------------------------------------------
408
- TranscribableTest: test_set_verification_level
409
- ----------------------------------------------
410
-  (0.1ms) rollback transaction
411
-  (0.1ms) begin transaction
412
- -------------------------------------------
413
- TranscribableTest: test_skipped_attr_is_set
414
- -------------------------------------------
415
-  (0.1ms) rollback transaction
416
-  (0.1ms) begin transaction
417
- ---------------------------------------------------
418
- TranscribableTest: test_transcribable_attrs_are_set
419
- ---------------------------------------------------
420
-  (0.1ms) rollback transaction
421
-  (0.1ms) begin transaction
422
- --------------------------------------------------
423
- TranscribableTest: test_transcribable_table_is_set
424
- --------------------------------------------------
425
-  (0.1ms) rollback transaction
426
-  (0.1ms) begin transaction
427
- -----------------------------
428
- TranscribableTest: test_truth
429
- -----------------------------
430
-  (0.1ms) rollback transaction
431
-  (0.5ms) begin transaction
432
- -------------------------------------------------------------------------------------------------------
433
- TranscribableAssignerTest: test_should_assign_documents_that_aren't_verified_or_transcribed_by_the_user
434
- -------------------------------------------------------------------------------------------------------
435
-  (0.3ms) SAVEPOINT active_record_1
436
- SQL (5.8ms) INSERT INTO "filings" ("id", "url", "verified") VALUES (?, ?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326844-fox-chicago-public-file"], ["verified", true]]
437
-  (0.1ms) RELEASE SAVEPOINT active_record_1
438
-  (0.1ms) SAVEPOINT active_record_1
439
- SQL (0.3ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 2], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
440
-  (0.1ms) RELEASE SAVEPOINT active_record_1
441
-  (0.1ms) SAVEPOINT active_record_1
442
- SQL (0.1ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 3], ["url", "https://www.documentcloud.org/documents/326753-cbs-chicago-public-file"]]
443
-  (0.1ms) RELEASE SAVEPOINT active_record_1
444
-  (0.1ms) SAVEPOINT active_record_1
445
- SQL (0.2ms) INSERT INTO "transcriptions" ("filing_id", "user_id") VALUES (?, ?) [["filing_id", 2], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
446
-  (0.1ms) RELEASE SAVEPOINT active_record_1
447
- Transcription Load (0.1ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."user_id" = '40765bb0cfa90130c5fb442c03361f6e'
448
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE (("filings"."verified" = 'f' OR "filings"."verified" IS NULL)) AND (id NOT IN (2))
449
- SQL (0.1ms) DELETE FROM "filings"
450
- SQL (0.1ms) DELETE FROM "transcriptions"
451
-  (0.7ms) rollback transaction
452
-  (0.1ms) begin transaction
453
- ----------------------------------------------
454
- TranscribableTest: test_set_verification_level
455
- ----------------------------------------------
456
-  (0.1ms) rollback transaction
457
-  (0.1ms) begin transaction
458
- -------------------------------------------
459
- TranscribableTest: test_skipped_attr_is_set
460
- -------------------------------------------
461
-  (0.1ms) rollback transaction
462
-  (0.1ms) begin transaction
463
- ---------------------------------------------------
464
- TranscribableTest: test_transcribable_attrs_are_set
465
- ---------------------------------------------------
466
-  (0.1ms) rollback transaction
467
-  (0.1ms) begin transaction
468
- --------------------------------------------------
469
- TranscribableTest: test_transcribable_table_is_set
470
- --------------------------------------------------
471
-  (0.1ms) rollback transaction
472
-  (0.1ms) begin transaction
473
- -----------------------------
474
- TranscribableTest: test_truth
475
- -----------------------------
476
-  (0.1ms) rollback transaction
477
-  (0.5ms) begin transaction
478
- -------------------------------------------------------------------------------------------------------
479
- TranscribableAssignerTest: test_should_assign_documents_that_aren't_verified_or_transcribed_by_the_user
480
- -------------------------------------------------------------------------------------------------------
481
-  (0.2ms) SAVEPOINT active_record_1
482
- SQL (6.0ms) INSERT INTO "filings" ("id", "url", "verified") VALUES (?, ?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326844-fox-chicago-public-file"], ["verified", true]]
483
-  (0.1ms) RELEASE SAVEPOINT active_record_1
484
-  (0.1ms) SAVEPOINT active_record_1
485
- SQL (0.4ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 2], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
486
-  (0.1ms) RELEASE SAVEPOINT active_record_1
487
-  (0.1ms) SAVEPOINT active_record_1
488
- SQL (0.1ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 3], ["url", "https://www.documentcloud.org/documents/326753-cbs-chicago-public-file"]]
489
-  (0.1ms) RELEASE SAVEPOINT active_record_1
490
-  (0.1ms) SAVEPOINT active_record_1
491
- SQL (0.2ms) INSERT INTO "transcriptions" ("filing_id", "user_id") VALUES (?, ?) [["filing_id", 2], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
492
-  (0.1ms) RELEASE SAVEPOINT active_record_1
493
- Transcription Load (0.1ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."user_id" = '40765bb0cfa90130c5fb442c03361f6e'
494
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE (("filings"."verified" = 'f' OR "filings"."verified" IS NULL)) AND (id NOT IN (2))
495
- SQL (0.1ms) DELETE FROM "filings"
496
- SQL (0.1ms) DELETE FROM "transcriptions"
497
-  (0.7ms) rollback transaction
498
-  (0.1ms) begin transaction
499
- ----------------------------------------------
500
- TranscribableTest: test_set_verification_level
501
- ----------------------------------------------
502
-  (0.1ms) rollback transaction
503
-  (0.1ms) begin transaction
504
- -------------------------------------------
505
- TranscribableTest: test_skipped_attr_is_set
506
- -------------------------------------------
507
-  (0.1ms) rollback transaction
508
-  (0.1ms) begin transaction
509
- ---------------------------------------------------
510
- TranscribableTest: test_transcribable_attrs_are_set
511
- ---------------------------------------------------
512
-  (0.1ms) rollback transaction
513
-  (0.1ms) begin transaction
514
- --------------------------------------------------
515
- TranscribableTest: test_transcribable_table_is_set
516
- --------------------------------------------------
517
-  (0.1ms) rollback transaction
518
-  (0.1ms) begin transaction
519
- -----------------------------
520
- TranscribableTest: test_truth
521
- -----------------------------
522
-  (0.1ms) rollback transaction
523
-  (0.5ms) begin transaction
524
- -------------------------------------------------------------------------------------------------------
525
- TranscribableAssignerTest: test_should_assign_documents_that_aren't_verified_or_transcribed_by_the_user
526
- -------------------------------------------------------------------------------------------------------
527
-  (0.1ms) SAVEPOINT active_record_1
528
- SQL (6.0ms) INSERT INTO "filings" ("id", "url", "verified") VALUES (?, ?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326844-fox-chicago-public-file"], ["verified", true]]
529
-  (0.1ms) RELEASE SAVEPOINT active_record_1
530
-  (0.1ms) SAVEPOINT active_record_1
531
- SQL (0.4ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 2], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
532
-  (0.1ms) RELEASE SAVEPOINT active_record_1
533
-  (0.1ms) SAVEPOINT active_record_1
534
- SQL (0.1ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 3], ["url", "https://www.documentcloud.org/documents/326753-cbs-chicago-public-file"]]
535
-  (0.1ms) RELEASE SAVEPOINT active_record_1
536
-  (0.1ms) SAVEPOINT active_record_1
537
- SQL (0.2ms) INSERT INTO "transcriptions" ("filing_id", "user_id") VALUES (?, ?) [["filing_id", 2], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
538
-  (0.1ms) RELEASE SAVEPOINT active_record_1
539
- Transcription Load (0.1ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."user_id" = '40765bb0cfa90130c5fb442c03361f6e'
540
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE (("filings"."verified" = 'f' OR "filings"."verified" IS NULL)) AND (id NOT IN (2))
541
- SQL (0.1ms) DELETE FROM "filings"
542
- SQL (0.1ms) DELETE FROM "transcriptions"
543
-  (0.7ms) rollback transaction
544
-  (0.1ms) begin transaction
545
- ----------------------------------------------
546
- TranscribableTest: test_set_verification_level
547
- ----------------------------------------------
548
-  (0.1ms) rollback transaction
549
-  (0.1ms) begin transaction
550
- -------------------------------------------
551
- TranscribableTest: test_skipped_attr_is_set
552
- -------------------------------------------
553
-  (0.1ms) rollback transaction
554
-  (0.1ms) begin transaction
555
- ---------------------------------------------------
556
- TranscribableTest: test_transcribable_attrs_are_set
557
- ---------------------------------------------------
558
-  (0.1ms) rollback transaction
559
-  (0.1ms) begin transaction
560
- --------------------------------------------------
561
- TranscribableTest: test_transcribable_table_is_set
562
- --------------------------------------------------
563
-  (0.1ms) rollback transaction
564
-  (0.1ms) begin transaction
565
- -----------------------------
566
- TranscribableTest: test_truth
567
- -----------------------------
568
-  (0.1ms) rollback transaction
569
-  (0.5ms) begin transaction
570
- -------------------------------------------------------------------------------------------------------
571
- TranscribableAssignerTest: test_should_assign_documents_that_aren't_verified_or_transcribed_by_the_user
572
- -------------------------------------------------------------------------------------------------------
573
-  (0.2ms) SAVEPOINT active_record_1
574
- SQL (6.1ms) INSERT INTO "filings" ("id", "url", "verified") VALUES (?, ?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326844-fox-chicago-public-file"], ["verified", true]]
575
-  (0.1ms) RELEASE SAVEPOINT active_record_1
576
-  (0.1ms) SAVEPOINT active_record_1
577
- SQL (0.4ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 2], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
578
-  (0.1ms) RELEASE SAVEPOINT active_record_1
579
-  (0.1ms) SAVEPOINT active_record_1
580
- SQL (0.1ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 3], ["url", "https://www.documentcloud.org/documents/326753-cbs-chicago-public-file"]]
581
-  (0.1ms) RELEASE SAVEPOINT active_record_1
582
-  (0.1ms) SAVEPOINT active_record_1
583
- SQL (0.2ms) INSERT INTO "transcriptions" ("filing_id", "user_id") VALUES (?, ?) [["filing_id", 2], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
584
-  (0.1ms) RELEASE SAVEPOINT active_record_1
585
- Transcription Load (0.1ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."user_id" = '40765bb0cfa90130c5fb442c03361f6e'
586
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE (("filings"."verified" = 'f' OR "filings"."verified" IS NULL)) AND (id NOT IN (2))
587
- SQL (0.1ms) DELETE FROM "filings"
588
- SQL (0.1ms) DELETE FROM "transcriptions"
589
-  (49.8ms) rollback transaction
590
-  (0.1ms) begin transaction
591
- ----------------------------------------------
592
- TranscribableTest: test_set_verification_level
593
- ----------------------------------------------
594
-  (0.1ms) rollback transaction
595
-  (0.1ms) begin transaction
596
- -------------------------------------------
597
- TranscribableTest: test_skipped_attr_is_set
598
- -------------------------------------------
599
-  (0.1ms) rollback transaction
600
-  (0.1ms) begin transaction
601
- ---------------------------------------------------
602
- TranscribableTest: test_transcribable_attrs_are_set
603
- ---------------------------------------------------
604
-  (0.1ms) rollback transaction
605
-  (0.1ms) begin transaction
606
- --------------------------------------------------
607
- TranscribableTest: test_transcribable_table_is_set
608
- --------------------------------------------------
609
-  (0.1ms) rollback transaction
610
-  (0.1ms) begin transaction
611
- -----------------------------
612
- TranscribableTest: test_truth
613
- -----------------------------
614
-  (0.1ms) rollback transaction
615
-  (0.1ms) begin transaction
616
- ------------------------------------------------------------
617
- TranscribableVerifierTest: test_should_verify_transcriptions
618
- ------------------------------------------------------------
619
-  (0.1ms) SAVEPOINT active_record_1
620
- SQL (0.4ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
621
-  (0.1ms) RELEASE SAVEPOINT active_record_1
622
-  (0.1ms) SAVEPOINT active_record_1
623
- SQL (0.5ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 123], ["buyer", "Restore Our Future"], ["filing_id", 1], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
624
-  (0.1ms) RELEASE SAVEPOINT active_record_1
625
-  (0.1ms) SAVEPOINT active_record_1
626
- SQL (0.1ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 123], ["buyer", "Restore our Future"], ["filing_id", 1], ["user_id", "5aa499f0cfb30130c5fc442c03361f6e"]]
627
-  (0.1ms) RELEASE SAVEPOINT active_record_1
628
- Filing Load (0.1ms) SELECT "filings".* FROM "filings" WHERE "filings"."id" = ? LIMIT 1 [["id", 1]]
629
- == Verifying buyer, amount
630
- Transcription Load (0.2ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."filing_id" = ? [["filing_id", 1]]
631
-  (0.1ms) SAVEPOINT active_record_1
632
- SQL (0.2ms) UPDATE "filings" SET "buyer" = ?, "amount" = ?, "verified" = ? WHERE "filings"."id" = 1 [["buyer", "RESTORE OUR FUTURE"], ["amount", 123], ["verified", true]]
633
-  (0.1ms) RELEASE SAVEPOINT active_record_1
634
- == Verified https://www.documentcloud.org/documents/326749-abc-chicago
635
- SQL (0.1ms) DELETE FROM "filings"
636
- SQL (0.1ms) DELETE FROM "transcriptions"
637
-  (0.7ms) rollback transaction
638
-  (0.5ms) begin transaction
639
- -------------------------------------------------------------------------------------------------------
640
- TranscribableAssignerTest: test_should_assign_documents_that_aren't_verified_or_transcribed_by_the_user
641
- -------------------------------------------------------------------------------------------------------
642
-  (0.3ms) SAVEPOINT active_record_1
643
- SQL (6.3ms) INSERT INTO "filings" ("id", "url", "verified") VALUES (?, ?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326844-fox-chicago-public-file"], ["verified", true]]
644
-  (0.1ms) RELEASE SAVEPOINT active_record_1
645
-  (0.1ms) SAVEPOINT active_record_1
646
- SQL (0.3ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 2], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
647
-  (0.1ms) RELEASE SAVEPOINT active_record_1
648
-  (0.1ms) SAVEPOINT active_record_1
649
- SQL (0.1ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 3], ["url", "https://www.documentcloud.org/documents/326753-cbs-chicago-public-file"]]
650
-  (0.1ms) RELEASE SAVEPOINT active_record_1
651
-  (0.1ms) SAVEPOINT active_record_1
652
- SQL (0.2ms) INSERT INTO "transcriptions" ("filing_id", "user_id") VALUES (?, ?) [["filing_id", 2], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
653
-  (0.1ms) RELEASE SAVEPOINT active_record_1
654
- Transcription Load (0.2ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."user_id" = '40765bb0cfa90130c5fb442c03361f6e'
655
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE (("filings"."verified" = 'f' OR "filings"."verified" IS NULL)) AND (id NOT IN (2))
656
- SQL (0.1ms) DELETE FROM "filings"
657
- SQL (0.1ms) DELETE FROM "transcriptions"
658
-  (0.7ms) rollback transaction
659
-  (0.1ms) begin transaction
660
- ----------------------------------------------
661
- TranscribableTest: test_set_verification_level
662
- ----------------------------------------------
663
-  (0.1ms) rollback transaction
664
-  (0.1ms) begin transaction
665
- -------------------------------------------
666
- TranscribableTest: test_skipped_attr_is_set
667
- -------------------------------------------
668
-  (0.1ms) rollback transaction
669
-  (0.1ms) begin transaction
670
- ---------------------------------------------------
671
- TranscribableTest: test_transcribable_attrs_are_set
672
- ---------------------------------------------------
673
-  (0.1ms) rollback transaction
674
-  (0.1ms) begin transaction
675
- --------------------------------------------------
676
- TranscribableTest: test_transcribable_table_is_set
677
- --------------------------------------------------
678
-  (0.1ms) rollback transaction
679
-  (0.1ms) begin transaction
680
- -----------------------------
681
- TranscribableTest: test_truth
682
- -----------------------------
683
-  (0.1ms) rollback transaction
684
-  (0.1ms) begin transaction
685
- ------------------------------------------------------------
686
- TranscribableVerifierTest: test_should_verify_transcriptions
687
- ------------------------------------------------------------
688
-  (0.1ms) SAVEPOINT active_record_1
689
- SQL (0.4ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
690
-  (0.1ms) RELEASE SAVEPOINT active_record_1
691
-  (0.1ms) SAVEPOINT active_record_1
692
- SQL (0.3ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 123], ["buyer", "Restore Our Future"], ["filing_id", 1], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
693
-  (0.1ms) RELEASE SAVEPOINT active_record_1
694
-  (0.1ms) SAVEPOINT active_record_1
695
- SQL (0.1ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 123], ["buyer", "Restore our Future"], ["filing_id", 1], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
696
-  (0.1ms) RELEASE SAVEPOINT active_record_1
697
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE "filings"."id" = ? LIMIT 1 [["id", 1]]
698
- == Verifying buyer, amount
699
- Transcription Load (0.3ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."filing_id" = ? [["filing_id", 1]]
700
-  (0.1ms) SAVEPOINT active_record_1
701
- SQL (0.3ms) UPDATE "filings" SET "buyer" = ?, "amount" = ?, "verified" = ? WHERE "filings"."id" = 1 [["buyer", "RESTORE OUR FUTURE"], ["amount", 123], ["verified", true]]
702
-  (0.1ms) RELEASE SAVEPOINT active_record_1
703
- == Verified https://www.documentcloud.org/documents/326749-abc-chicago
704
- SQL (0.1ms) DELETE FROM "filings"
705
- SQL (0.1ms) DELETE FROM "transcriptions"
706
-  (0.7ms) rollback transaction
707
-  (0.6ms) begin transaction
708
- -------------------------------------------------------------------------------------------------------
709
- TranscribableAssignerTest: test_should_assign_documents_that_aren't_verified_or_transcribed_by_the_user
710
- -------------------------------------------------------------------------------------------------------
711
-  (0.2ms) SAVEPOINT active_record_1
712
- SQL (5.9ms) INSERT INTO "filings" ("id", "url", "verified") VALUES (?, ?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326844-fox-chicago-public-file"], ["verified", true]]
713
-  (0.1ms) RELEASE SAVEPOINT active_record_1
714
-  (0.1ms) SAVEPOINT active_record_1
715
- SQL (0.4ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 2], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
716
-  (0.1ms) RELEASE SAVEPOINT active_record_1
717
-  (0.1ms) SAVEPOINT active_record_1
718
- SQL (0.1ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 3], ["url", "https://www.documentcloud.org/documents/326753-cbs-chicago-public-file"]]
719
-  (0.1ms) RELEASE SAVEPOINT active_record_1
720
-  (0.1ms) SAVEPOINT active_record_1
721
- SQL (0.2ms) INSERT INTO "transcriptions" ("filing_id", "user_id") VALUES (?, ?) [["filing_id", 2], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
722
-  (0.1ms) RELEASE SAVEPOINT active_record_1
723
- Transcription Load (0.2ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."user_id" = '40765bb0cfa90130c5fb442c03361f6e'
724
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE (("filings"."verified" = 'f' OR "filings"."verified" IS NULL)) AND (id NOT IN (2))
725
- SQL (0.3ms) DELETE FROM "filings"
726
- SQL (0.1ms) DELETE FROM "transcriptions"
727
-  (1.7ms) rollback transaction
728
-  (0.2ms) begin transaction
729
- ----------------------------------------------
730
- TranscribableTest: test_set_verification_level
731
- ----------------------------------------------
732
-  (0.1ms) rollback transaction
733
-  (0.1ms) begin transaction
734
- -------------------------------------------
735
- TranscribableTest: test_skipped_attr_is_set
736
- -------------------------------------------
737
-  (0.1ms) rollback transaction
738
-  (0.1ms) begin transaction
739
- ---------------------------------------------------
740
- TranscribableTest: test_transcribable_attrs_are_set
741
- ---------------------------------------------------
742
-  (0.1ms) rollback transaction
743
-  (0.1ms) begin transaction
744
- --------------------------------------------------
745
- TranscribableTest: test_transcribable_table_is_set
746
- --------------------------------------------------
747
-  (0.1ms) rollback transaction
748
-  (0.1ms) begin transaction
749
- -----------------------------
750
- TranscribableTest: test_truth
751
- -----------------------------
752
-  (0.1ms) rollback transaction
753
-  (0.1ms) begin transaction
754
- ------------------------------------------------------------
755
- TranscribableVerifierTest: test_should_verify_transcriptions
756
- ------------------------------------------------------------
757
-  (0.1ms) SAVEPOINT active_record_1
758
- SQL (0.4ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
759
-  (0.1ms) RELEASE SAVEPOINT active_record_1
760
-  (0.1ms) SAVEPOINT active_record_1
761
- SQL (0.4ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 123], ["buyer", "Restore Our Future"], ["filing_id", 1], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
762
-  (0.1ms) RELEASE SAVEPOINT active_record_1
763
-  (0.1ms) SAVEPOINT active_record_1
764
- SQL (0.1ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 123], ["buyer", "Restore our Future"], ["filing_id", 1], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
765
-  (0.1ms) RELEASE SAVEPOINT active_record_1
766
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE "filings"."id" = ? LIMIT 1 [["id", 1]]
767
- == Verifying buyer, amount
768
- Transcription Load (0.3ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."filing_id" = ? [["filing_id", 1]]
769
-  (0.1ms) SAVEPOINT active_record_1
770
- SQL (0.2ms) UPDATE "filings" SET "buyer" = ?, "amount" = ?, "verified" = ? WHERE "filings"."id" = 1 [["buyer", "RESTORE OUR FUTURE"], ["amount", 123], ["verified", true]]
771
-  (0.1ms) RELEASE SAVEPOINT active_record_1
772
- == Verified https://www.documentcloud.org/documents/326749-abc-chicago
773
- SQL (0.1ms) DELETE FROM "filings"
774
- SQL (0.1ms) DELETE FROM "transcriptions"
775
-  (0.7ms) rollback transaction
776
-  (0.5ms) begin transaction
777
- -------------------------------------------------------------------------------------------------------
778
- TranscribableAssignerTest: test_should_assign_documents_that_aren't_verified_or_transcribed_by_the_user
779
- -------------------------------------------------------------------------------------------------------
780
-  (0.3ms) SAVEPOINT active_record_1
781
- SQL (6.0ms) INSERT INTO "filings" ("id", "url", "verified") VALUES (?, ?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326844-fox-chicago-public-file"], ["verified", true]]
782
-  (0.1ms) RELEASE SAVEPOINT active_record_1
783
-  (0.1ms) SAVEPOINT active_record_1
784
- SQL (0.3ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 2], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
785
-  (0.1ms) RELEASE SAVEPOINT active_record_1
786
-  (0.1ms) SAVEPOINT active_record_1
787
- SQL (0.1ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 3], ["url", "https://www.documentcloud.org/documents/326753-cbs-chicago-public-file"]]
788
-  (0.1ms) RELEASE SAVEPOINT active_record_1
789
-  (0.1ms) SAVEPOINT active_record_1
790
- SQL (0.3ms) INSERT INTO "transcriptions" ("filing_id", "user_id") VALUES (?, ?) [["filing_id", 2], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
791
-  (0.1ms) RELEASE SAVEPOINT active_record_1
792
- Transcription Load (0.2ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."user_id" = '40765bb0cfa90130c5fb442c03361f6e'
793
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE (("filings"."verified" = 'f' OR "filings"."verified" IS NULL)) AND (id NOT IN (2))
794
- SQL (0.1ms) DELETE FROM "filings"
795
- SQL (0.1ms) DELETE FROM "transcriptions"
796
-  (0.7ms) rollback transaction
797
-  (0.1ms) begin transaction
798
- ----------------------------------------------
799
- TranscribableTest: test_set_verification_level
800
- ----------------------------------------------
801
-  (0.1ms) rollback transaction
802
-  (0.1ms) begin transaction
803
- -------------------------------------------
804
- TranscribableTest: test_skipped_attr_is_set
805
- -------------------------------------------
806
-  (0.1ms) rollback transaction
807
-  (0.1ms) begin transaction
808
- ---------------------------------------------------
809
- TranscribableTest: test_transcribable_attrs_are_set
810
- ---------------------------------------------------
811
-  (0.1ms) rollback transaction
812
-  (0.1ms) begin transaction
813
- --------------------------------------------------
814
- TranscribableTest: test_transcribable_table_is_set
815
- --------------------------------------------------
816
-  (0.1ms) rollback transaction
817
-  (0.1ms) begin transaction
818
- -----------------------------
819
- TranscribableTest: test_truth
820
- -----------------------------
821
-  (0.1ms) rollback transaction
822
-  (0.1ms) begin transaction
823
- ------------------------------------------------------------
824
- TranscribableVerifierTest: test_should_verify_transcriptions
825
- ------------------------------------------------------------
826
-  (0.1ms) SAVEPOINT active_record_1
827
- SQL (0.4ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
828
-  (0.1ms) RELEASE SAVEPOINT active_record_1
829
-  (0.1ms) SAVEPOINT active_record_1
830
- SQL (0.3ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 123], ["buyer", "Restore Our Future"], ["filing_id", 1], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
831
-  (0.1ms) RELEASE SAVEPOINT active_record_1
832
-  (0.1ms) SAVEPOINT active_record_1
833
- SQL (0.1ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 123], ["buyer", "Restore our Future"], ["filing_id", 1], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
834
-  (0.1ms) RELEASE SAVEPOINT active_record_1
835
- Filing Load (0.1ms) SELECT "filings".* FROM "filings" WHERE "filings"."id" = ? LIMIT 1 [["id", 1]]
836
- == Verifying buyer, amount
837
- Transcription Load (0.2ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."filing_id" = ? [["filing_id", 1]]
838
-  (0.1ms) SAVEPOINT active_record_1
839
- SQL (0.2ms) UPDATE "filings" SET "buyer" = ?, "amount" = ?, "verified" = ? WHERE "filings"."id" = 1 [["buyer", "RESTORE OUR FUTURE"], ["amount", 123], ["verified", true]]
840
-  (0.1ms) RELEASE SAVEPOINT active_record_1
841
- == Verified https://www.documentcloud.org/documents/326749-abc-chicago
842
- SQL (0.1ms) DELETE FROM "filings"
843
- SQL (0.1ms) DELETE FROM "transcriptions"
844
-  (0.5ms) rollback transaction
845
-  (0.6ms) begin transaction
846
- -------------------------------------------------------------------------------------------------------
847
- TranscribableAssignerTest: test_should_assign_documents_that_aren't_verified_or_transcribed_by_the_user
848
- -------------------------------------------------------------------------------------------------------
849
-  (0.1ms) SAVEPOINT active_record_1
850
- SQL (6.1ms) INSERT INTO "filings" ("id", "url", "verified") VALUES (?, ?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326844-fox-chicago-public-file"], ["verified", true]]
851
-  (0.1ms) RELEASE SAVEPOINT active_record_1
852
-  (0.1ms) SAVEPOINT active_record_1
853
- SQL (0.3ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 2], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
854
-  (0.1ms) RELEASE SAVEPOINT active_record_1
855
-  (0.1ms) SAVEPOINT active_record_1
856
- SQL (0.1ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 3], ["url", "https://www.documentcloud.org/documents/326753-cbs-chicago-public-file"]]
857
-  (0.1ms) RELEASE SAVEPOINT active_record_1
858
-  (0.1ms) SAVEPOINT active_record_1
859
- SQL (0.2ms) INSERT INTO "transcriptions" ("filing_id", "user_id") VALUES (?, ?) [["filing_id", 2], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
860
-  (0.1ms) RELEASE SAVEPOINT active_record_1
861
- Transcription Load (0.1ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."user_id" = '40765bb0cfa90130c5fb442c03361f6e'
862
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE (("filings"."verified" = 'f' OR "filings"."verified" IS NULL)) AND (id NOT IN (2))
863
- SQL (0.1ms) DELETE FROM "filings"
864
- SQL (0.1ms) DELETE FROM "transcriptions"
865
-  (0.7ms) rollback transaction
866
-  (0.1ms) begin transaction
867
- ----------------------------------------------
868
- TranscribableTest: test_set_verification_level
869
- ----------------------------------------------
870
-  (0.1ms) rollback transaction
871
-  (0.1ms) begin transaction
872
- -------------------------------------------
873
- TranscribableTest: test_skipped_attr_is_set
874
- -------------------------------------------
875
-  (0.1ms) rollback transaction
876
-  (0.1ms) begin transaction
877
- ---------------------------------------------------
878
- TranscribableTest: test_transcribable_attrs_are_set
879
- ---------------------------------------------------
880
-  (0.1ms) rollback transaction
881
-  (0.1ms) begin transaction
882
- --------------------------------------------------
883
- TranscribableTest: test_transcribable_table_is_set
884
- --------------------------------------------------
885
-  (0.1ms) rollback transaction
886
-  (0.1ms) begin transaction
887
- -----------------------------
888
- TranscribableTest: test_truth
889
- -----------------------------
890
-  (0.1ms) rollback transaction
891
-  (0.1ms) begin transaction
892
- ------------------------------------------------------------
893
- TranscribableVerifierTest: test_should_verify_transcriptions
894
- ------------------------------------------------------------
895
-  (0.1ms) SAVEPOINT active_record_1
896
- SQL (0.4ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
897
-  (0.1ms) RELEASE SAVEPOINT active_record_1
898
-  (0.1ms) SAVEPOINT active_record_1
899
- SQL (0.3ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 123], ["buyer", "Restore Our Future"], ["filing_id", 1], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
900
-  (0.1ms) RELEASE SAVEPOINT active_record_1
901
-  (0.1ms) SAVEPOINT active_record_1
902
- SQL (0.2ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 1234], ["buyer", "Restore our Future"], ["filing_id", 1], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
903
-  (0.1ms) RELEASE SAVEPOINT active_record_1
904
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE "filings"."id" = ? LIMIT 1 [["id", 1]]
905
- == Verifying buyer, amount
906
- Transcription Load (0.2ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."filing_id" = ? [["filing_id", 1]]
907
- == Not verified: https://www.documentcloud.org/documents/326749-abc-chicago
908
- SQL (0.2ms) DELETE FROM "filings"
909
- SQL (0.1ms) DELETE FROM "transcriptions"
910
-  (0.8ms) rollback transaction
911
-  (0.5ms) begin transaction
912
- -------------------------------------------------------------------------------------------------------
913
- TranscribableAssignerTest: test_should_assign_documents_that_aren't_verified_or_transcribed_by_the_user
914
- -------------------------------------------------------------------------------------------------------
915
-  (0.2ms) SAVEPOINT active_record_1
916
- SQL (7.0ms) INSERT INTO "filings" ("id", "url", "verified") VALUES (?, ?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326844-fox-chicago-public-file"], ["verified", true]]
917
-  (0.1ms) RELEASE SAVEPOINT active_record_1
918
-  (0.1ms) SAVEPOINT active_record_1
919
- SQL (0.4ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 2], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
920
-  (0.1ms) RELEASE SAVEPOINT active_record_1
921
-  (0.1ms) SAVEPOINT active_record_1
922
- SQL (0.1ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 3], ["url", "https://www.documentcloud.org/documents/326753-cbs-chicago-public-file"]]
923
-  (0.1ms) RELEASE SAVEPOINT active_record_1
924
-  (0.1ms) SAVEPOINT active_record_1
925
- SQL (0.3ms) INSERT INTO "transcriptions" ("filing_id", "user_id") VALUES (?, ?) [["filing_id", 2], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
926
-  (0.1ms) RELEASE SAVEPOINT active_record_1
927
- Transcription Load (0.2ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."user_id" = '40765bb0cfa90130c5fb442c03361f6e'
928
- Filing Load (0.2ms) SELECT "filings".* FROM "filings" WHERE (("filings"."verified" = 'f' OR "filings"."verified" IS NULL)) AND (id NOT IN (2))
929
- SQL (0.1ms) DELETE FROM "filings"
930
- SQL (0.1ms) DELETE FROM "transcriptions"
931
-  (0.7ms) rollback transaction
932
-  (0.1ms) begin transaction
933
- ----------------------------------------------
934
- TranscribableTest: test_set_verification_level
935
- ----------------------------------------------
936
-  (0.1ms) rollback transaction
937
-  (0.1ms) begin transaction
938
- -------------------------------------------
939
- TranscribableTest: test_skipped_attr_is_set
940
- -------------------------------------------
941
-  (0.1ms) rollback transaction
942
-  (0.1ms) begin transaction
943
- ---------------------------------------------------
944
- TranscribableTest: test_transcribable_attrs_are_set
945
- ---------------------------------------------------
946
-  (0.1ms) rollback transaction
947
-  (0.1ms) begin transaction
948
- --------------------------------------------------
949
- TranscribableTest: test_transcribable_table_is_set
950
- --------------------------------------------------
951
-  (0.1ms) rollback transaction
952
-  (0.1ms) begin transaction
953
- -----------------------------
954
- TranscribableTest: test_truth
955
- -----------------------------
956
-  (0.1ms) rollback transaction
957
-  (0.1ms) begin transaction
958
- ------------------------------------------------------------
959
- TranscribableVerifierTest: test_should_verify_transcriptions
960
- ------------------------------------------------------------
961
-  (0.1ms) SAVEPOINT active_record_1
962
- SQL (0.4ms) INSERT INTO "filings" ("id", "url") VALUES (?, ?) [["id", 1], ["url", "https://www.documentcloud.org/documents/326749-abc-chicago"]]
963
-  (0.1ms) RELEASE SAVEPOINT active_record_1
964
-  (0.1ms) SAVEPOINT active_record_1
965
- SQL (0.4ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 123], ["buyer", "Restore Our Future"], ["filing_id", 1], ["user_id", "40765bb0cfa90130c5fb442c03361f6e"]]
966
-  (0.1ms) RELEASE SAVEPOINT active_record_1
967
-  (0.1ms) SAVEPOINT active_record_1
968
- SQL (0.1ms) INSERT INTO "transcriptions" ("amount", "buyer", "filing_id", "user_id") VALUES (?, ?, ?, ?) [["amount", 123], ["buyer", "Restore our Future"], ["filing_id", 1], ["user_id", "5aa499f0cfb30130c5fc442c03361f6e"]]
969
-  (0.1ms) RELEASE SAVEPOINT active_record_1
970
- Filing Load (0.1ms) SELECT "filings".* FROM "filings" WHERE "filings"."id" = ? LIMIT 1 [["id", 1]]
971
- == Verifying buyer, amount
972
- Transcription Load (0.3ms) SELECT "transcriptions".* FROM "transcriptions" WHERE "transcriptions"."filing_id" = ? [["filing_id", 1]]
973
-  (0.1ms) SAVEPOINT active_record_1
974
- SQL (0.4ms) UPDATE "filings" SET "buyer" = ?, "amount" = ?, "verified" = ? WHERE "filings"."id" = 1 [["buyer", "RESTORE OUR FUTURE"], ["amount", 123], ["verified", true]]
975
-  (0.1ms) RELEASE SAVEPOINT active_record_1
976
- == Verified https://www.documentcloud.org/documents/326749-abc-chicago
977
- SQL (0.1ms) DELETE FROM "filings"
978
- SQL (0.1ms) DELETE FROM "transcriptions"
979
-  (0.7ms) rollback transaction