transcribable 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/Rakefile +32 -0
  3. data/lib/generators/templates/assets/stylesheets/simple_frame.css +284 -0
  4. data/lib/generators/templates/config/documentcloud.yml +3 -0
  5. data/lib/generators/templates/controller.rb +48 -0
  6. data/lib/generators/templates/migration.rb +15 -0
  7. data/lib/generators/templates/migration_add_columns.rb +13 -0
  8. data/lib/generators/templates/model.rb +10 -0
  9. data/lib/generators/templates/views/_form.html.erb +32 -0
  10. data/lib/generators/templates/views/layouts/simple_frame.html.erb +50 -0
  11. data/lib/generators/templates/views/new.html.erb +28 -0
  12. data/lib/generators/transcribable_generator.rb +59 -0
  13. data/lib/tasks/harvester.rake +23 -0
  14. data/lib/transcribable.rb +156 -0
  15. data/lib/transcribable/railtie.rb +11 -0
  16. data/lib/transcribable/version.rb +3 -0
  17. data/test/dummy/README.rdoc +28 -0
  18. data/test/dummy/Rakefile +6 -0
  19. data/test/dummy/app/assets/javascripts/application.js +13 -0
  20. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  21. data/test/dummy/app/controllers/application_controller.rb +5 -0
  22. data/test/dummy/app/helpers/application_helper.rb +2 -0
  23. data/test/dummy/app/models/filing.rb +6 -0
  24. data/test/dummy/app/models/transcription.rb +10 -0
  25. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  26. data/test/dummy/bin/bundle +3 -0
  27. data/test/dummy/bin/rails +4 -0
  28. data/test/dummy/bin/rake +4 -0
  29. data/test/dummy/config.ru +4 -0
  30. data/test/dummy/config/application.rb +23 -0
  31. data/test/dummy/config/boot.rb +5 -0
  32. data/test/dummy/config/database.yml +25 -0
  33. data/test/dummy/config/environment.rb +5 -0
  34. data/test/dummy/config/environments/development.rb +29 -0
  35. data/test/dummy/config/environments/production.rb +80 -0
  36. data/test/dummy/config/environments/test.rb +36 -0
  37. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  39. data/test/dummy/config/initializers/inflections.rb +16 -0
  40. data/test/dummy/config/initializers/mime_types.rb +5 -0
  41. data/test/dummy/config/initializers/secret_token.rb +12 -0
  42. data/test/dummy/config/initializers/session_store.rb +3 -0
  43. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  44. data/test/dummy/config/locales/en.yml +23 -0
  45. data/test/dummy/config/routes.rb +56 -0
  46. data/test/dummy/db/schema.rb +19 -0
  47. data/test/dummy/db/test.sqlite3 +0 -0
  48. data/test/dummy/log/test.log +979 -0
  49. data/test/dummy/public/404.html +58 -0
  50. data/test/dummy/public/422.html +58 -0
  51. data/test/dummy/public/500.html +57 -0
  52. data/test/dummy/public/favicon.ico +0 -0
  53. data/test/test_helper.rb +15 -0
  54. data/test/transcribable_test.rb +72 -0
  55. metadata +202 -0
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
@@ -0,0 +1,23 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require(*Rails.groups)
6
+ require "transcribable"
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Settings in config/environments/* take precedence over those specified here.
11
+ # Application configuration should go into files in config/initializers
12
+ # -- all .rb files in that directory are automatically loaded.
13
+
14
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
15
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
16
+ # config.time_zone = 'Central Time (US & Canada)'
17
+
18
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
+ # config.i18n.default_locale = :de
21
+ end
22
+ end
23
+
@@ -0,0 +1,5 @@
1
+ # Set up gems listed in the Gemfile.
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
5
+ $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: db/test.sqlite3
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Dummy::Application.initialize!
@@ -0,0 +1,29 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports and disable caching.
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send.
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger.
20
+ config.active_support.deprecation = :log
21
+
22
+ # Raise an error on page load if there are pending migrations
23
+ config.active_record.migration_error = :page_load
24
+
25
+ # Debug mode disables concatenation and preprocessing of assets.
26
+ # This option may cause significant delays in view rendering with a large
27
+ # number of complex assets.
28
+ config.assets.debug = true
29
+ end
@@ -0,0 +1,80 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # Code is not reloaded between requests.
5
+ config.cache_classes = true
6
+
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both thread web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
+ # config.action_dispatch.rack_cache = true
21
+
22
+ # Disable Rails's static asset server (Apache or nginx will already do this).
23
+ config.serve_static_assets = false
24
+
25
+ # Compress JavaScripts and CSS.
26
+ config.assets.js_compressor = :uglifier
27
+ # config.assets.css_compressor = :sass
28
+
29
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
30
+ config.assets.compile = false
31
+
32
+ # Generate digests for assets URLs.
33
+ config.assets.digest = true
34
+
35
+ # Version of your assets, change this if you want to expire all your assets.
36
+ config.assets.version = '1.0'
37
+
38
+ # Specifies the header that your server uses for sending files.
39
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
+
42
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
+ # config.force_ssl = true
44
+
45
+ # Set to :debug to see everything in the log.
46
+ config.log_level = :info
47
+
48
+ # Prepend all log lines with the following tags.
49
+ # config.log_tags = [ :subdomain, :uuid ]
50
+
51
+ # Use a different logger for distributed setups.
52
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
+
54
+ # Use a different cache store in production.
55
+ # config.cache_store = :mem_cache_store
56
+
57
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
58
+ # config.action_controller.asset_host = "http://assets.example.com"
59
+
60
+ # Precompile additional assets.
61
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
62
+ # config.assets.precompile += %w( search.js )
63
+
64
+ # Ignore bad email addresses and do not raise email delivery errors.
65
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
66
+ # config.action_mailer.raise_delivery_errors = false
67
+
68
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
+ # the I18n.default_locale when a translation can not be found).
70
+ config.i18n.fallbacks = true
71
+
72
+ # Send deprecation notices to registered listeners.
73
+ config.active_support.deprecation = :notify
74
+
75
+ # Disable automatic flushing of the log to improve performance.
76
+ # config.autoflush_log = false
77
+
78
+ # Use default logging formatter so that PID and timestamp are not suppressed.
79
+ config.log_formatter = ::Logger::Formatter.new
80
+ end
@@ -0,0 +1,36 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = "public, max-age=3600"
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = '4b27b4aaa715260be01dcfd7adfe103de7df1f83a27a13ad3f430b95e0ed0d7d20af6c6e28808a12f1fd18bac461b88c09a85334296cac13638673cda2a09a95'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,19 @@
1
+ ActiveRecord::Schema.define(version: 20130710175855) do
2
+
3
+ create_table "filings", force: true do |t|
4
+ t.string "url"
5
+ t.string "buyer"
6
+ t.integer "amount"
7
+ t.boolean "verified"
8
+ t.text "notes"
9
+ end
10
+
11
+ create_table "transcriptions", force: true do |t|
12
+ t.string "buyer"
13
+ t.integer "amount"
14
+ t.integer "filing_id"
15
+ t.string "user_id"
16
+ t.text "notes"
17
+ end
18
+
19
+ end
@@ -0,0 +1,979 @@
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