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