has_default_association 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +34 -0
  4. data/lib/has_default_association.rb +63 -0
  5. data/lib/has_default_association/version.rb +3 -0
  6. data/lib/tasks/has_default_association_tasks.rake +4 -0
  7. data/test/dummy/README.rdoc +28 -0
  8. data/test/dummy/Rakefile +6 -0
  9. data/test/dummy/app/assets/javascripts/application.js +13 -0
  10. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  11. data/test/dummy/app/controllers/application_controller.rb +5 -0
  12. data/test/dummy/app/helpers/application_helper.rb +2 -0
  13. data/test/dummy/app/views/layouts/application.html.erb +13 -0
  14. data/test/dummy/bin/bundle +3 -0
  15. data/test/dummy/bin/rails +4 -0
  16. data/test/dummy/bin/rake +4 -0
  17. data/test/dummy/bin/setup +29 -0
  18. data/test/dummy/config.ru +4 -0
  19. data/test/dummy/config/application.rb +32 -0
  20. data/test/dummy/config/boot.rb +5 -0
  21. data/test/dummy/config/database.yml +25 -0
  22. data/test/dummy/config/environment.rb +5 -0
  23. data/test/dummy/config/environments/development.rb +41 -0
  24. data/test/dummy/config/environments/production.rb +79 -0
  25. data/test/dummy/config/environments/test.rb +42 -0
  26. data/test/dummy/config/initializers/assets.rb +11 -0
  27. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  28. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  29. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  30. data/test/dummy/config/initializers/inflections.rb +16 -0
  31. data/test/dummy/config/initializers/mime_types.rb +4 -0
  32. data/test/dummy/config/initializers/session_store.rb +3 -0
  33. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  34. data/test/dummy/config/locales/en.yml +23 -0
  35. data/test/dummy/config/routes.rb +56 -0
  36. data/test/dummy/config/secrets.yml +22 -0
  37. data/test/dummy/db/development.sqlite3 +0 -0
  38. data/test/dummy/db/migrate/20150815045153_create_books.rb +10 -0
  39. data/test/dummy/db/migrate/20150815045203_create_people.rb +9 -0
  40. data/test/dummy/db/migrate/20150815045223_create_summaries.rb +10 -0
  41. data/test/dummy/db/migrate/20150816140025_create_reviews.rb +11 -0
  42. data/test/dummy/db/schema.rb +44 -0
  43. data/test/dummy/db/test.sqlite3 +0 -0
  44. data/test/dummy/log/development.log +67 -0
  45. data/test/dummy/log/test.log +924 -0
  46. data/test/dummy/public/404.html +67 -0
  47. data/test/dummy/public/422.html +67 -0
  48. data/test/dummy/public/500.html +66 -0
  49. data/test/dummy/public/favicon.ico +0 -0
  50. data/test/dummy/test/fixtures/books.yml +7 -0
  51. data/test/dummy/test/fixtures/people.yml +7 -0
  52. data/test/dummy/test/fixtures/summaries.yml +7 -0
  53. data/test/dummy/test/models/book_test.rb +7 -0
  54. data/test/dummy/test/models/person_test.rb +7 -0
  55. data/test/dummy/test/models/summary_test.rb +7 -0
  56. data/test/has_default_association_test.rb +127 -0
  57. data/test/test_helper.rb +18 -0
  58. metadata +193 -0
@@ -0,0 +1,42 @@
1
+ Rails.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 file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = 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
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+ end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -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,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -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,4 @@
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
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.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
+ Rails.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,22 @@
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 the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: f131ee95aa7642b0b8f0f98f14260a5b73f3d9a630c01db16b33b4dd6ab06fa8dd90fb85fc61c20daa6c2bdd48f4a62b28647c735119ebde01d242bca2d5b1d4
15
+
16
+ test:
17
+ secret_key_base: 76446e7e36f6e5e8f8501f8c12834dc3c20e58ae9e0a8eaa7fa9b4b17015d786ba949a898d08d2e07ac17ac9d6d3797a1f222185c3c9cc3a38a4d8c968cfe3ba
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,10 @@
1
+ class CreateBooks < ActiveRecord::Migration
2
+ def change
3
+ create_table :books do |t|
4
+ t.string :name
5
+ t.integer :author_id
6
+
7
+ t.timestamps null: false
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ class CreatePeople < ActiveRecord::Migration
2
+ def change
3
+ create_table :people do |t|
4
+ t.string :name
5
+
6
+ t.timestamps null: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ class CreateSummaries < ActiveRecord::Migration
2
+ def change
3
+ create_table :summaries do |t|
4
+ t.string :text
5
+ t.integer :book_id
6
+
7
+ t.timestamps null: false
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,11 @@
1
+ class CreateReviews < ActiveRecord::Migration
2
+ def change
3
+ create_table :reviews do |t|
4
+ t.string :text
5
+ t.integer :book_id
6
+ t.integer :person_id
7
+
8
+ t.timestamps null: false
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,44 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150816140025) do
15
+
16
+ create_table "books", force: :cascade do |t|
17
+ t.string "name"
18
+ t.integer "author_id"
19
+ t.datetime "created_at", null: false
20
+ t.datetime "updated_at", null: false
21
+ end
22
+
23
+ create_table "people", force: :cascade do |t|
24
+ t.string "name"
25
+ t.datetime "created_at", null: false
26
+ t.datetime "updated_at", null: false
27
+ end
28
+
29
+ create_table "reviews", force: :cascade do |t|
30
+ t.string "text"
31
+ t.integer "book_id"
32
+ t.integer "person_id"
33
+ t.datetime "created_at", null: false
34
+ t.datetime "updated_at", null: false
35
+ end
36
+
37
+ create_table "summaries", force: :cascade do |t|
38
+ t.string "text"
39
+ t.integer "book_id"
40
+ t.datetime "created_at", null: false
41
+ t.datetime "updated_at", null: false
42
+ end
43
+
44
+ end
@@ -0,0 +1,67 @@
1
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.0ms) select sqlite_version(*)
3
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateBooks (20150815045153)
6
+  (0.0ms) begin transaction
7
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150815045153"]]
9
+  (0.9ms) commit transaction
10
+ Migrating to CreatePeople (20150815045203)
11
+  (0.0ms) begin transaction
12
+  (0.3ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150815045203"]]
14
+  (0.8ms) commit transaction
15
+ Migrating to CreateSummaries (20150815045223)
16
+  (0.0ms) begin transaction
17
+  (0.2ms) CREATE TABLE "summaries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
18
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150815045223"]]
19
+  (0.7ms) commit transaction
20
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
21
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
22
+  (0.0ms) select sqlite_version(*)
23
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
24
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
+ Migrating to CreateBooks (20150815045153)
26
+  (0.0ms) begin transaction
27
+  (0.4ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "author_id" integer, "summary_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
28
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150815045153"]]
29
+  (0.8ms) commit transaction
30
+ Migrating to CreatePeople (20150815045203)
31
+  (0.0ms) begin transaction
32
+  (0.3ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
33
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150815045203"]]
34
+  (0.7ms) commit transaction
35
+ Migrating to CreateSummaries (20150815045223)
36
+  (0.0ms) begin transaction
37
+  (0.3ms) CREATE TABLE "summaries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150815045223"]]
39
+  (0.7ms) commit transaction
40
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
42
+  (0.0ms) select sqlite_version(*)
43
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
44
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
45
+ Migrating to CreateBooks (20150815045153)
46
+  (0.0ms) begin transaction
47
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "author_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
48
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150815045153"]]
49
+  (0.7ms) commit transaction
50
+ Migrating to CreatePeople (20150815045203)
51
+  (0.0ms) begin transaction
52
+  (0.3ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
53
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150815045203"]]
54
+  (0.8ms) commit transaction
55
+ Migrating to CreateSummaries (20150815045223)
56
+  (0.0ms) begin transaction
57
+  (0.3ms) CREATE TABLE "summaries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar, "book_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
58
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150815045223"]]
59
+  (0.7ms) commit transaction
60
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
61
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
62
+ Migrating to CreateReviews (20150816140025)
63
+  (0.1ms) begin transaction
64
+  (0.5ms) CREATE TABLE "reviews" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar, "book_id" integer, "person_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
65
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150816140025"]]
66
+  (0.8ms) commit transaction
67
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -0,0 +1,924 @@
1
+  (1.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "author_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2
+  (0.8ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3
+  (0.8ms) CREATE TABLE "summaries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar, "book_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
5
+  (0.1ms) select sqlite_version(*)
6
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
+  (0.1ms) SELECT version FROM "schema_migrations"
8
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150815045223')
9
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150815045153')
10
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150815045203')
11
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+  (0.1ms) begin transaction
13
+ -------------------------------------
14
+ HasDefaultAssociationTest: test_truth
15
+ -------------------------------------
16
+  (0.0ms) rollback transaction
17
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
18
+  (0.1ms) begin transaction
19
+ -----------------------------------------------------
20
+ HasDefaultAssociationTest: test_builds_default_models
21
+ -----------------------------------------------------
22
+  (0.1ms) rollback transaction
23
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+  (0.1ms) begin transaction
25
+ ----------------------------------------------------------
26
+ HasDefaultAssociationTest: test_infers_correct_model_class
27
+ ----------------------------------------------------------
28
+  (0.1ms) rollback transaction
29
+  (0.0ms) begin transaction
30
+ -----------------------------------------------------
31
+ HasDefaultAssociationTest: test_builds_default_models
32
+ -----------------------------------------------------
33
+  (0.0ms) rollback transaction
34
+  (0.0ms) begin transaction
35
+ -------------------------------------------------------------------------
36
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
37
+ -------------------------------------------------------------------------
38
+  (0.0ms) rollback transaction
39
+  (0.0ms) begin transaction
40
+ --------------------------------------------------------------
41
+ HasDefaultAssociationTest: test_supports_custom_default_blocks
42
+ --------------------------------------------------------------
43
+  (0.0ms) rollback transaction
44
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
45
+  (0.1ms) begin transaction
46
+ --------------------------------------------------------------
47
+ HasDefaultAssociationTest: test_supports_custom_default_blocks
48
+ --------------------------------------------------------------
49
+  (0.1ms) rollback transaction
50
+  (0.0ms) begin transaction
51
+ -----------------------------------------------------
52
+ HasDefaultAssociationTest: test_builds_default_models
53
+ -----------------------------------------------------
54
+  (0.0ms) rollback transaction
55
+  (0.0ms) begin transaction
56
+ -------------------------------------------------------------------------
57
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
58
+ -------------------------------------------------------------------------
59
+  (0.0ms) rollback transaction
60
+  (0.0ms) begin transaction
61
+ ----------------------------------------------------------
62
+ HasDefaultAssociationTest: test_infers_correct_model_class
63
+ ----------------------------------------------------------
64
+  (0.0ms) rollback transaction
65
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
66
+  (0.1ms) begin transaction
67
+ -----------------------------------------------------
68
+ HasDefaultAssociationTest: test_builds_default_models
69
+ -----------------------------------------------------
70
+  (0.1ms) rollback transaction
71
+  (0.0ms) begin transaction
72
+ ----------------------------------------------------------
73
+ HasDefaultAssociationTest: test_infers_correct_model_class
74
+ ----------------------------------------------------------
75
+  (0.1ms) rollback transaction
76
+  (0.0ms) begin transaction
77
+ -------------------------------------------------------------------------
78
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
79
+ -------------------------------------------------------------------------
80
+  (0.0ms) rollback transaction
81
+  (0.0ms) begin transaction
82
+ --------------------------------------------------------------
83
+ HasDefaultAssociationTest: test_supports_custom_default_blocks
84
+ --------------------------------------------------------------
85
+  (0.0ms) rollback transaction
86
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
87
+  (0.1ms) begin transaction
88
+ --------------------------------------------------------------
89
+ HasDefaultAssociationTest: test_supports_custom_default_blocks
90
+ --------------------------------------------------------------
91
+  (0.1ms) rollback transaction
92
+  (0.0ms) begin transaction
93
+ --------------------------------------------------------
94
+ HasDefaultAssociationTest: test_loads_saved_associations
95
+ --------------------------------------------------------
96
+  (0.0ms) SAVEPOINT active_record_1
97
+ SQL (0.4ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-15 05:18:31.163799"], ["updated_at", "2015-08-15 05:18:31.163799"]]
98
+  (0.0ms) RELEASE SAVEPOINT active_record_1
99
+  (0.7ms) rollback transaction
100
+  (0.0ms) begin transaction
101
+ -----------------------------------------------------
102
+ HasDefaultAssociationTest: test_builds_default_models
103
+ -----------------------------------------------------
104
+  (0.0ms) rollback transaction
105
+  (0.0ms) begin transaction
106
+ -------------------------------------------------------------------------
107
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
108
+ -------------------------------------------------------------------------
109
+  (0.0ms) rollback transaction
110
+  (0.1ms) begin transaction
111
+ ----------------------------------------------------------
112
+ HasDefaultAssociationTest: test_infers_correct_model_class
113
+ ----------------------------------------------------------
114
+  (0.0ms) rollback transaction
115
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
116
+  (0.1ms) begin transaction
117
+ -----------------------------------------------------
118
+ HasDefaultAssociationTest: test_builds_default_models
119
+ -----------------------------------------------------
120
+  (0.1ms) rollback transaction
121
+  (0.0ms) begin transaction
122
+ ----------------------------------------------------------
123
+ HasDefaultAssociationTest: test_infers_correct_model_class
124
+ ----------------------------------------------------------
125
+  (0.0ms) rollback transaction
126
+  (0.0ms) begin transaction
127
+ --------------------------------------------------------------
128
+ HasDefaultAssociationTest: test_supports_custom_default_blocks
129
+ --------------------------------------------------------------
130
+  (0.1ms) rollback transaction
131
+  (0.0ms) begin transaction
132
+ --------------------------------------------------------
133
+ HasDefaultAssociationTest: test_loads_saved_associations
134
+ --------------------------------------------------------
135
+  (0.0ms) SAVEPOINT active_record_1
136
+ SQL (0.4ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-15 05:18:45.086378"], ["updated_at", "2015-08-15 05:18:45.086378"]]
137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138
+  (1.0ms) rollback transaction
139
+  (0.1ms) begin transaction
140
+ -------------------------------------------------------------------------
141
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
142
+ -------------------------------------------------------------------------
143
+  (0.0ms) rollback transaction
144
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
145
+  (0.1ms) begin transaction
146
+ --------------------------------------------------------
147
+ HasDefaultAssociationTest: test_loads_saved_associations
148
+ --------------------------------------------------------
149
+  (0.0ms) SAVEPOINT active_record_1
150
+ SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-15 05:19:55.059948"], ["updated_at", "2015-08-15 05:19:55.059948"]]
151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
152
+  (0.0ms) SAVEPOINT active_record_1
153
+ SQL (0.3ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-15 05:19:55.069708"], ["updated_at", "2015-08-15 05:19:55.069708"]]
154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
155
+  (1.3ms) rollback transaction
156
+  (0.1ms) begin transaction
157
+ -----------------------------------------------------
158
+ HasDefaultAssociationTest: test_builds_default_models
159
+ -----------------------------------------------------
160
+  (0.1ms) rollback transaction
161
+  (0.1ms) begin transaction
162
+ ----------------------------------------------------------
163
+ HasDefaultAssociationTest: test_infers_correct_model_class
164
+ ----------------------------------------------------------
165
+  (0.0ms) rollback transaction
166
+  (0.0ms) begin transaction
167
+ -------------------------------------------------------------------------
168
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
169
+ -------------------------------------------------------------------------
170
+  (0.0ms) rollback transaction
171
+  (0.0ms) begin transaction
172
+ --------------------------------------------------------------
173
+ HasDefaultAssociationTest: test_supports_custom_default_blocks
174
+ --------------------------------------------------------------
175
+  (0.0ms) rollback transaction
176
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
177
+  (0.1ms) begin transaction
178
+ ----------------------------------------------------------
179
+ HasDefaultAssociationTest: test_infers_correct_model_class
180
+ ----------------------------------------------------------
181
+  (0.1ms) rollback transaction
182
+  (0.0ms) begin transaction
183
+ -------------------------------------------------------------------------
184
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
185
+ -------------------------------------------------------------------------
186
+  (0.0ms) rollback transaction
187
+  (0.1ms) begin transaction
188
+ -----------------------------------------------------
189
+ HasDefaultAssociationTest: test_builds_default_models
190
+ -----------------------------------------------------
191
+  (0.1ms) rollback transaction
192
+  (0.0ms) begin transaction
193
+ --------------------------------------------------------------------------------
194
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
195
+ --------------------------------------------------------------------------------
196
+  (0.1ms) rollback transaction
197
+  (0.1ms) begin transaction
198
+ --------------------------------------------------------
199
+ HasDefaultAssociationTest: test_loads_saved_associations
200
+ --------------------------------------------------------
201
+  (0.0ms) SAVEPOINT active_record_1
202
+ SQL (0.9ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 04:02:25.767082"], ["updated_at", "2015-08-16 04:02:25.767082"]]
203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
204
+  (0.1ms) SAVEPOINT active_record_1
205
+ SQL (0.6ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 04:02:25.771917"], ["updated_at", "2015-08-16 04:02:25.771917"]]
206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207
+  (0.5ms) rollback transaction
208
+  (0.0ms) begin transaction
209
+ ------------------------------------------------------------------------
210
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
211
+ ------------------------------------------------------------------------
212
+  (0.1ms) rollback transaction
213
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
214
+  (0.1ms) begin transaction
215
+ ------------------------------------------------------------------------
216
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
217
+ ------------------------------------------------------------------------
218
+  (0.1ms) rollback transaction
219
+  (0.0ms) begin transaction
220
+ --------------------------------------------------------------------------------
221
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
222
+ --------------------------------------------------------------------------------
223
+  (0.1ms) rollback transaction
224
+  (0.0ms) begin transaction
225
+ --------------------------------------------------------
226
+ HasDefaultAssociationTest: test_loads_saved_associations
227
+ --------------------------------------------------------
228
+  (0.0ms) SAVEPOINT active_record_1
229
+ SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 04:02:58.059820"], ["updated_at", "2015-08-16 04:02:58.059820"]]
230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231
+  (0.0ms) SAVEPOINT active_record_1
232
+ SQL (0.3ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 04:02:58.063714"], ["updated_at", "2015-08-16 04:02:58.063714"]]
233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
234
+  (1.3ms) rollback transaction
235
+  (0.1ms) begin transaction
236
+ ----------------------------------------------------------
237
+ HasDefaultAssociationTest: test_infers_correct_model_class
238
+ ----------------------------------------------------------
239
+  (0.1ms) rollback transaction
240
+  (0.0ms) begin transaction
241
+ -------------------------------------------------------------------------
242
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
243
+ -------------------------------------------------------------------------
244
+  (0.0ms) rollback transaction
245
+  (0.0ms) begin transaction
246
+ -----------------------------------------------------
247
+ HasDefaultAssociationTest: test_builds_default_models
248
+ -----------------------------------------------------
249
+  (0.0ms) rollback transaction
250
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
251
+  (0.1ms) begin transaction
252
+ --------------------------------------------------------------------------------
253
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
254
+ --------------------------------------------------------------------------------
255
+  (0.0ms) rollback transaction
256
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
257
+  (0.1ms) begin transaction
258
+ --------------------------------------------------------------------------------
259
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
260
+ --------------------------------------------------------------------------------
261
+  (0.2ms) rollback transaction
262
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
263
+  (0.1ms) begin transaction
264
+ --------------------------------------------------------------------------------
265
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
266
+ --------------------------------------------------------------------------------
267
+  (0.0ms) rollback transaction
268
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
269
+  (0.1ms) begin transaction
270
+ --------------------------------------------------------------------------------
271
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
272
+ --------------------------------------------------------------------------------
273
+  (0.1ms) rollback transaction
274
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
275
+  (0.1ms) begin transaction
276
+ --------------------------------------------------------------------------------
277
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
278
+ --------------------------------------------------------------------------------
279
+  (0.1ms) rollback transaction
280
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
281
+  (0.1ms) begin transaction
282
+ --------------------------------------------------------
283
+ HasDefaultAssociationTest: test_loads_saved_associations
284
+ --------------------------------------------------------
285
+  (0.0ms) SAVEPOINT active_record_1
286
+ SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 04:09:23.488556"], ["updated_at", "2015-08-16 04:09:23.488556"]]
287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
288
+  (0.0ms) SAVEPOINT active_record_1
289
+ SQL (0.3ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 04:09:23.498616"], ["updated_at", "2015-08-16 04:09:23.498616"]]
290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
291
+  (0.7ms) rollback transaction
292
+  (0.0ms) begin transaction
293
+ ------------------------------------------------------------------------
294
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
295
+ ------------------------------------------------------------------------
296
+  (0.0ms) rollback transaction
297
+  (0.0ms) begin transaction
298
+ -------------------------------------------------------------------------
299
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
300
+ -------------------------------------------------------------------------
301
+  (0.0ms) rollback transaction
302
+  (0.0ms) begin transaction
303
+ ----------------------------------------------------------
304
+ HasDefaultAssociationTest: test_infers_correct_model_class
305
+ ----------------------------------------------------------
306
+  (0.0ms) rollback transaction
307
+  (0.0ms) begin transaction
308
+ --------------------------------------------------------------------------------
309
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
310
+ --------------------------------------------------------------------------------
311
+  (0.0ms) rollback transaction
312
+  (0.0ms) begin transaction
313
+ -----------------------------------------------------
314
+ HasDefaultAssociationTest: test_builds_default_models
315
+ -----------------------------------------------------
316
+  (0.0ms) rollback transaction
317
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
318
+  (0.1ms) begin transaction
319
+ ----------------------------------------------------------
320
+ HasDefaultAssociationTest: test_infers_correct_model_class
321
+ ----------------------------------------------------------
322
+  (0.1ms) rollback transaction
323
+  (0.1ms) begin transaction
324
+ ------------------------------------------------------------------------
325
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
326
+ ------------------------------------------------------------------------
327
+  (0.0ms) rollback transaction
328
+  (0.0ms) begin transaction
329
+ -------------------------------------------------------------------------
330
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
331
+ -------------------------------------------------------------------------
332
+  (0.0ms) rollback transaction
333
+  (0.0ms) begin transaction
334
+ --------------------------------------------------------------------------------
335
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
336
+ --------------------------------------------------------------------------------
337
+  (0.1ms) rollback transaction
338
+  (0.0ms) begin transaction
339
+ --------------------------------------------------------
340
+ HasDefaultAssociationTest: test_loads_saved_associations
341
+ --------------------------------------------------------
342
+  (0.0ms) SAVEPOINT active_record_1
343
+ SQL (0.8ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 13:53:34.092939"], ["updated_at", "2015-08-16 13:53:34.092939"]]
344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
345
+  (0.0ms) SAVEPOINT active_record_1
346
+ SQL (0.6ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 13:53:34.097592"], ["updated_at", "2015-08-16 13:53:34.097592"]]
347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
348
+  (0.6ms) rollback transaction
349
+  (0.0ms) begin transaction
350
+ -----------------------------------------------------
351
+ HasDefaultAssociationTest: test_builds_default_models
352
+ -----------------------------------------------------
353
+  (0.0ms) rollback transaction
354
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
355
+  (0.1ms) begin transaction
356
+ ----------------------------------------------------------
357
+ HasDefaultAssociationTest: test_infers_correct_model_class
358
+ ----------------------------------------------------------
359
+  (0.1ms) rollback transaction
360
+  (0.0ms) begin transaction
361
+ -------------------------------------------------------------------------
362
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
363
+ -------------------------------------------------------------------------
364
+  (0.0ms) rollback transaction
365
+  (0.0ms) begin transaction
366
+ --------------------------------------------------------
367
+ HasDefaultAssociationTest: test_loads_saved_associations
368
+ --------------------------------------------------------
369
+  (0.0ms) SAVEPOINT active_record_1
370
+ SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 13:55:17.707097"], ["updated_at", "2015-08-16 13:55:17.707097"]]
371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
372
+  (0.0ms) SAVEPOINT active_record_1
373
+ SQL (0.3ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 13:55:17.710634"], ["updated_at", "2015-08-16 13:55:17.710634"]]
374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
375
+  (1.3ms) rollback transaction
376
+  (0.1ms) begin transaction
377
+ ------------------------------------------------------------------------
378
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
379
+ ------------------------------------------------------------------------
380
+  (0.0ms) rollback transaction
381
+  (0.0ms) begin transaction
382
+ --------------------------------------------------------------------------------
383
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
384
+ --------------------------------------------------------------------------------
385
+  (0.0ms) rollback transaction
386
+  (0.0ms) begin transaction
387
+ -----------------------------------------------------
388
+ HasDefaultAssociationTest: test_builds_default_models
389
+ -----------------------------------------------------
390
+  (0.0ms) rollback transaction
391
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
392
+  (1.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "author_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
393
+  (0.8ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
394
+  (1.2ms) CREATE TABLE "reviews" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar, "book_id" integer, "person_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
395
+  (0.8ms) CREATE TABLE "summaries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar, "book_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
396
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
397
+  (0.1ms) select sqlite_version(*)
398
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
399
+  (0.1ms) SELECT version FROM "schema_migrations"
400
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150816140025')
401
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150815045153')
402
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150815045203')
403
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150815045223')
404
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
405
+  (0.1ms) begin transaction
406
+ --------------------------------------------------------
407
+ HasDefaultAssociationTest: test_loads_saved_associations
408
+ --------------------------------------------------------
409
+  (0.0ms) SAVEPOINT active_record_1
410
+ SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 14:01:38.269285"], ["updated_at", "2015-08-16 14:01:38.269285"]]
411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
412
+  (0.0ms) SAVEPOINT active_record_1
413
+ SQL (0.4ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 14:01:38.280103"], ["updated_at", "2015-08-16 14:01:38.280103"]]
414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
415
+  (1.3ms) rollback transaction
416
+  (0.1ms) begin transaction
417
+ ----------------------------------------------------------
418
+ HasDefaultAssociationTest: test_infers_correct_model_class
419
+ ----------------------------------------------------------
420
+  (0.1ms) rollback transaction
421
+  (0.0ms) begin transaction
422
+ -----------------------------------------------------
423
+ HasDefaultAssociationTest: test_builds_default_models
424
+ -----------------------------------------------------
425
+  (0.0ms) rollback transaction
426
+  (0.1ms) begin transaction
427
+ -------------------------------------------------------------------------
428
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
429
+ -------------------------------------------------------------------------
430
+  (0.0ms) rollback transaction
431
+  (0.0ms) begin transaction
432
+ ------------------------------------------------------------------------
433
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
434
+ ------------------------------------------------------------------------
435
+  (0.0ms) rollback transaction
436
+  (0.0ms) begin transaction
437
+ --------------------------------------------------------------------------------
438
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
439
+ --------------------------------------------------------------------------------
440
+  (0.1ms) rollback transaction
441
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
442
+  (0.1ms) begin transaction
443
+ --------------------------------------------------------
444
+ HasDefaultAssociationTest: test_loads_saved_associations
445
+ --------------------------------------------------------
446
+  (0.1ms) SAVEPOINT active_record_1
447
+ SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 14:03:57.382850"], ["updated_at", "2015-08-16 14:03:57.382850"]]
448
+  (0.0ms) RELEASE SAVEPOINT active_record_1
449
+  (0.0ms) SAVEPOINT active_record_1
450
+ SQL (0.3ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 14:03:57.392635"], ["updated_at", "2015-08-16 14:03:57.392635"]]
451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
452
+  (1.3ms) rollback transaction
453
+  (0.1ms) begin transaction
454
+ --------------------------------------------------------------------------
455
+ HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
456
+ --------------------------------------------------------------------------
457
+  (0.1ms) rollback transaction
458
+  (0.0ms) begin transaction
459
+ -------------------------------------------------------------------------
460
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
461
+ -------------------------------------------------------------------------
462
+  (0.0ms) rollback transaction
463
+  (0.0ms) begin transaction
464
+ ------------------------------------------------------------------------
465
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
466
+ ------------------------------------------------------------------------
467
+  (0.1ms) rollback transaction
468
+  (0.0ms) begin transaction
469
+ ----------------------------------------------------------
470
+ HasDefaultAssociationTest: test_infers_correct_model_class
471
+ ----------------------------------------------------------
472
+  (0.0ms) rollback transaction
473
+  (0.0ms) begin transaction
474
+ -----------------------------------------------------
475
+ HasDefaultAssociationTest: test_builds_default_models
476
+ -----------------------------------------------------
477
+  (0.0ms) rollback transaction
478
+  (0.0ms) begin transaction
479
+ --------------------------------------------------------------------------------
480
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
481
+ --------------------------------------------------------------------------------
482
+  (0.0ms) rollback transaction
483
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
484
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
485
+  (0.1ms) begin transaction
486
+ -----------------------------------------------------
487
+ HasDefaultAssociationTest: test_builds_default_models
488
+ -----------------------------------------------------
489
+  (0.1ms) rollback transaction
490
+  (0.0ms) begin transaction
491
+ --------------------------------------------------------------
492
+ HasDefaultAssociationTest: test_eagerly_instantiates_relations
493
+ --------------------------------------------------------------
494
+  (0.0ms) rollback transaction
495
+  (0.0ms) begin transaction
496
+ ------------------------------------------------------------------------
497
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
498
+ ------------------------------------------------------------------------
499
+  (0.0ms) rollback transaction
500
+  (0.0ms) begin transaction
501
+ --------------------------------------------------------------------------------
502
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
503
+ --------------------------------------------------------------------------------
504
+  (0.1ms) rollback transaction
505
+  (0.0ms) begin transaction
506
+ --------------------------------------------------------
507
+ HasDefaultAssociationTest: test_loads_saved_associations
508
+ --------------------------------------------------------
509
+  (0.0ms) SAVEPOINT active_record_1
510
+ SQL (0.9ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:30:31.758928"], ["updated_at", "2015-08-16 15:30:31.758928"]]
511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
512
+  (0.0ms) SAVEPOINT active_record_1
513
+ SQL (0.6ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 15:30:31.765014"], ["updated_at", "2015-08-16 15:30:31.765014"]]
514
+ SQL (0.3ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:30:31.766299"], ["updated_at", "2015-08-16 15:30:31.766299"]]
515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
516
+  (0.5ms) rollback transaction
517
+  (0.1ms) begin transaction
518
+ --------------------------------------------------------------------------
519
+ HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
520
+ --------------------------------------------------------------------------
521
+  (0.1ms) rollback transaction
522
+  (0.1ms) begin transaction
523
+ -------------------------------------------------------------------------
524
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
525
+ -------------------------------------------------------------------------
526
+  (0.0ms) rollback transaction
527
+  (0.0ms) begin transaction
528
+ ---------------------------------------------------------------------------------------
529
+ HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
530
+ ---------------------------------------------------------------------------------------
531
+  (0.0ms) SAVEPOINT active_record_1
532
+ SQL (0.3ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:30:31.774965"], ["updated_at", "2015-08-16 15:30:31.774965"]]
533
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:30:31.775929"], ["updated_at", "2015-08-16 15:30:31.775929"]]
534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
535
+  (0.3ms) rollback transaction
536
+  (0.0ms) begin transaction
537
+ ----------------------------------------------------------
538
+ HasDefaultAssociationTest: test_infers_correct_model_class
539
+ ----------------------------------------------------------
540
+  (0.0ms) rollback transaction
541
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
542
+  (0.1ms) begin transaction
543
+ -------------------------------------------------------------------------
544
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
545
+ -------------------------------------------------------------------------
546
+  (0.0ms) rollback transaction
547
+  (0.0ms) begin transaction
548
+ --------------------------------------------------------------------------------
549
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
550
+ --------------------------------------------------------------------------------
551
+  (0.0ms) rollback transaction
552
+  (0.0ms) begin transaction
553
+ --------------------------------------------------------------
554
+ HasDefaultAssociationTest: test_eagerly_instantiates_relations
555
+ --------------------------------------------------------------
556
+  (0.0ms) rollback transaction
557
+  (0.0ms) begin transaction
558
+ ---------------------------------------------------------------------------------------
559
+ HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
560
+ ---------------------------------------------------------------------------------------
561
+  (0.0ms) SAVEPOINT active_record_1
562
+ SQL (0.4ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:31:01.656783"], ["updated_at", "2015-08-16 15:31:01.656783"]]
563
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:31:01.659832"], ["updated_at", "2015-08-16 15:31:01.659832"]]
564
+  (0.0ms) RELEASE SAVEPOINT active_record_1
565
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", 1]]
566
+  (0.4ms) rollback transaction
567
+  (0.0ms) begin transaction
568
+ ------------------------------------------------------------------------
569
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
570
+ ------------------------------------------------------------------------
571
+  (0.0ms) rollback transaction
572
+  (0.0ms) begin transaction
573
+ ----------------------------------------------------------
574
+ HasDefaultAssociationTest: test_infers_correct_model_class
575
+ ----------------------------------------------------------
576
+  (0.0ms) rollback transaction
577
+  (0.0ms) begin transaction
578
+ --------------------------------------------------------
579
+ HasDefaultAssociationTest: test_loads_saved_associations
580
+ --------------------------------------------------------
581
+  (0.0ms) SAVEPOINT active_record_1
582
+ SQL (0.3ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:31:01.672302"], ["updated_at", "2015-08-16 15:31:01.672302"]]
583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
584
+  (0.0ms) SAVEPOINT active_record_1
585
+ SQL (0.3ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 15:31:01.673845"], ["updated_at", "2015-08-16 15:31:01.673845"]]
586
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:31:01.674724"], ["updated_at", "2015-08-16 15:31:01.674724"]]
587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
588
+  (0.4ms) rollback transaction
589
+  (0.0ms) begin transaction
590
+ --------------------------------------------------------------------------
591
+ HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
592
+ --------------------------------------------------------------------------
593
+  (0.1ms) rollback transaction
594
+  (0.0ms) begin transaction
595
+ -----------------------------------------------------
596
+ HasDefaultAssociationTest: test_builds_default_models
597
+ -----------------------------------------------------
598
+  (0.0ms) rollback transaction
599
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
600
+  (0.1ms) begin transaction
601
+ --------------------------------------------------------
602
+ HasDefaultAssociationTest: test_loads_saved_associations
603
+ --------------------------------------------------------
604
+  (0.0ms) SAVEPOINT active_record_1
605
+ SQL (0.4ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:31:45.452732"], ["updated_at", "2015-08-16 15:31:45.452732"]]
606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
607
+  (0.0ms) SAVEPOINT active_record_1
608
+ SQL (0.3ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 15:31:45.467345"], ["updated_at", "2015-08-16 15:31:45.467345"]]
609
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:31:45.468407"], ["updated_at", "2015-08-16 15:31:45.468407"]]
610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
611
+  (1.3ms) rollback transaction
612
+  (0.1ms) begin transaction
613
+ -----------------------------------------------------
614
+ HasDefaultAssociationTest: test_builds_default_models
615
+ -----------------------------------------------------
616
+  (0.0ms) rollback transaction
617
+  (0.1ms) begin transaction
618
+ ------------------------------------------------------------------------
619
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
620
+ ------------------------------------------------------------------------
621
+  (0.1ms) rollback transaction
622
+  (0.1ms) begin transaction
623
+ ---------------------------------------------------------------------------------------
624
+ HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
625
+ ---------------------------------------------------------------------------------------
626
+  (0.0ms) SAVEPOINT active_record_1
627
+ SQL (0.2ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:31:45.475636"], ["updated_at", "2015-08-16 15:31:45.475636"]]
628
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:31:45.476556"], ["updated_at", "2015-08-16 15:31:45.476556"]]
629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
630
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", 1]]
631
+  (0.5ms) rollback transaction
632
+  (0.1ms) begin transaction
633
+ --------------------------------------------------------------
634
+ HasDefaultAssociationTest: test_eagerly_instantiates_relations
635
+ --------------------------------------------------------------
636
+  (0.0ms) rollback transaction
637
+  (0.0ms) begin transaction
638
+ --------------------------------------------------------------------------------
639
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
640
+ --------------------------------------------------------------------------------
641
+  (0.0ms) rollback transaction
642
+  (0.0ms) begin transaction
643
+ -------------------------------------------------------------------------
644
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
645
+ -------------------------------------------------------------------------
646
+  (0.0ms) rollback transaction
647
+  (0.0ms) begin transaction
648
+ --------------------------------------------------------------------------
649
+ HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
650
+ --------------------------------------------------------------------------
651
+  (0.1ms) rollback transaction
652
+  (0.0ms) begin transaction
653
+ ----------------------------------------------------------
654
+ HasDefaultAssociationTest: test_infers_correct_model_class
655
+ ----------------------------------------------------------
656
+  (0.0ms) rollback transaction
657
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
658
+  (0.1ms) begin transaction
659
+ --------------------------------------------------------------------------------
660
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
661
+ --------------------------------------------------------------------------------
662
+  (0.1ms) rollback transaction
663
+  (0.0ms) begin transaction
664
+ --------------------------------------------------------------------------
665
+ HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
666
+ --------------------------------------------------------------------------
667
+  (0.1ms) rollback transaction
668
+  (0.0ms) begin transaction
669
+ ----------------------------------------------------------
670
+ HasDefaultAssociationTest: test_infers_correct_model_class
671
+ ----------------------------------------------------------
672
+  (0.0ms) rollback transaction
673
+  (0.0ms) begin transaction
674
+ ---------------------------------------------------------------------------------------
675
+ HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
676
+ ---------------------------------------------------------------------------------------
677
+  (0.0ms) SAVEPOINT active_record_1
678
+ SQL (0.4ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:32:49.721753"], ["updated_at", "2015-08-16 15:32:49.721753"]]
679
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:32:49.724722"], ["updated_at", "2015-08-16 15:32:49.724722"]]
680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
681
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", 1]]
682
+  (1.0ms) rollback transaction
683
+  (0.0ms) begin transaction
684
+ -----------------------------------------------------------------
685
+ HasDefaultAssociationTest: test_eagerly_instantiates_associations
686
+ -----------------------------------------------------------------
687
+  (0.0ms) rollback transaction
688
+  (0.0ms) begin transaction
689
+ -----------------------------------------------------
690
+ HasDefaultAssociationTest: test_builds_default_models
691
+ -----------------------------------------------------
692
+  (0.0ms) rollback transaction
693
+  (0.0ms) begin transaction
694
+ --------------------------------------------------------
695
+ HasDefaultAssociationTest: test_loads_saved_associations
696
+ --------------------------------------------------------
697
+  (0.0ms) SAVEPOINT active_record_1
698
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:32:49.734502"], ["updated_at", "2015-08-16 15:32:49.734502"]]
699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
700
+  (0.0ms) SAVEPOINT active_record_1
701
+ SQL (0.3ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 15:32:49.736112"], ["updated_at", "2015-08-16 15:32:49.736112"]]
702
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:32:49.736954"], ["updated_at", "2015-08-16 15:32:49.736954"]]
703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
704
+  (0.5ms) rollback transaction
705
+  (0.0ms) begin transaction
706
+ ------------------------------------------------------------
707
+ HasDefaultAssociationTest: test_eager_associations_are_saved
708
+ ------------------------------------------------------------
709
+  (0.0ms) SAVEPOINT active_record_1
710
+ SQL (0.2ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:32:49.738983"], ["updated_at", "2015-08-16 15:32:49.738983"]]
711
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:32:49.739696"], ["updated_at", "2015-08-16 15:32:49.739696"]]
712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
713
+  (0.3ms) rollback transaction
714
+  (0.0ms) begin transaction
715
+ -------------------------------------------------------------------------
716
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
717
+ -------------------------------------------------------------------------
718
+  (0.0ms) rollback transaction
719
+  (0.0ms) begin transaction
720
+ ------------------------------------------------------------------------
721
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
722
+ ------------------------------------------------------------------------
723
+  (0.0ms) rollback transaction
724
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
725
+  (0.1ms) begin transaction
726
+ ---------------------------------------------------------------------------------------
727
+ HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
728
+ ---------------------------------------------------------------------------------------
729
+  (0.0ms) SAVEPOINT active_record_1
730
+ SQL (0.4ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:35:41.243140"], ["updated_at", "2015-08-16 15:35:41.243140"]]
731
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:35:41.246152"], ["updated_at", "2015-08-16 15:35:41.246152"]]
732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
733
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", 1]]
734
+  (0.9ms) rollback transaction
735
+  (0.0ms) begin transaction
736
+ -------------------------------------------------------------------------
737
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
738
+ -------------------------------------------------------------------------
739
+  (0.0ms) rollback transaction
740
+  (0.0ms) begin transaction
741
+ --------------------------------------------------------
742
+ HasDefaultAssociationTest: test_loads_saved_associations
743
+ --------------------------------------------------------
744
+  (0.0ms) SAVEPOINT active_record_1
745
+ SQL (0.3ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:35:41.257797"], ["updated_at", "2015-08-16 15:35:41.257797"]]
746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
747
+  (0.0ms) SAVEPOINT active_record_1
748
+ SQL (0.3ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 15:35:41.259603"], ["updated_at", "2015-08-16 15:35:41.259603"]]
749
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:35:41.260534"], ["updated_at", "2015-08-16 15:35:41.260534"]]
750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
751
+  (0.6ms) rollback transaction
752
+  (0.0ms) begin transaction
753
+ ------------------------------------------------------------
754
+ HasDefaultAssociationTest: test_eager_associations_are_saved
755
+ ------------------------------------------------------------
756
+  (0.0ms) SAVEPOINT active_record_1
757
+ SQL (0.2ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 15:35:41.262751"], ["updated_at", "2015-08-16 15:35:41.262751"]]
758
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 15:35:41.263619"], ["updated_at", "2015-08-16 15:35:41.263619"]]
759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
760
+  (0.5ms) rollback transaction
761
+  (0.0ms) begin transaction
762
+ --------------------------------------------------------------------------------
763
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
764
+ --------------------------------------------------------------------------------
765
+  (0.1ms) rollback transaction
766
+  (0.0ms) begin transaction
767
+ -----------------------------------------------------
768
+ HasDefaultAssociationTest: test_builds_default_models
769
+ -----------------------------------------------------
770
+  (0.0ms) rollback transaction
771
+  (0.0ms) begin transaction
772
+ --------------------------------------------------------------------------
773
+ HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
774
+ --------------------------------------------------------------------------
775
+  (0.0ms) rollback transaction
776
+  (0.0ms) begin transaction
777
+ ----------------------------------------------------------
778
+ HasDefaultAssociationTest: test_infers_correct_model_class
779
+ ----------------------------------------------------------
780
+  (0.0ms) rollback transaction
781
+  (0.1ms) begin transaction
782
+ ------------------------------------------------------------------------
783
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
784
+ ------------------------------------------------------------------------
785
+  (0.0ms) rollback transaction
786
+  (0.1ms) begin transaction
787
+ -----------------------------------------------------------------
788
+ HasDefaultAssociationTest: test_eagerly_instantiates_associations
789
+ -----------------------------------------------------------------
790
+  (0.0ms) rollback transaction
791
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
792
+  (0.1ms) begin transaction
793
+ -------------------------------------------------------------------------
794
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
795
+ -------------------------------------------------------------------------
796
+  (0.0ms) rollback transaction
797
+  (0.1ms) begin transaction
798
+ --------------------------------------------------------
799
+ HasDefaultAssociationTest: test_loads_saved_associations
800
+ --------------------------------------------------------
801
+  (0.0ms) SAVEPOINT active_record_1
802
+ SQL (0.9ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 19:07:13.992872"], ["updated_at", "2015-08-16 19:07:13.992872"]]
803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
804
+  (0.0ms) SAVEPOINT active_record_1
805
+ SQL (0.6ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 19:07:13.998254"], ["updated_at", "2015-08-16 19:07:13.998254"]]
806
+ SQL (0.4ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 19:07:13.999752"], ["updated_at", "2015-08-16 19:07:13.999752"]]
807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
808
+  (0.6ms) rollback transaction
809
+  (0.0ms) begin transaction
810
+ -----------------------------------------------------------------
811
+ HasDefaultAssociationTest: test_eagerly_instantiates_associations
812
+ -----------------------------------------------------------------
813
+  (0.0ms) rollback transaction
814
+  (0.0ms) begin transaction
815
+ --------------------------------------------------------------------------
816
+ HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
817
+ --------------------------------------------------------------------------
818
+  (0.1ms) rollback transaction
819
+  (0.1ms) begin transaction
820
+ ------------------------------------------------------------
821
+ HasDefaultAssociationTest: test_eager_associations_are_saved
822
+ ------------------------------------------------------------
823
+  (0.0ms) SAVEPOINT active_record_1
824
+ SQL (0.4ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 19:07:14.011956"], ["updated_at", "2015-08-16 19:07:14.011956"]]
825
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 19:07:14.013214"], ["updated_at", "2015-08-16 19:07:14.013214"]]
826
+  (0.0ms) RELEASE SAVEPOINT active_record_1
827
+  (0.3ms) rollback transaction
828
+  (0.0ms) begin transaction
829
+ ------------------------------------------------------------------------
830
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
831
+ ------------------------------------------------------------------------
832
+  (0.0ms) rollback transaction
833
+  (0.0ms) begin transaction
834
+ ----------------------------------------------------------
835
+ HasDefaultAssociationTest: test_infers_correct_model_class
836
+ ----------------------------------------------------------
837
+  (0.0ms) rollback transaction
838
+  (0.0ms) begin transaction
839
+ --------------------------------------------------------------------------------
840
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
841
+ --------------------------------------------------------------------------------
842
+  (0.0ms) rollback transaction
843
+  (0.1ms) begin transaction
844
+ ---------------------------------------------------------------------------------------
845
+ HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
846
+ ---------------------------------------------------------------------------------------
847
+  (0.0ms) SAVEPOINT active_record_1
848
+ SQL (0.2ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 19:07:14.022585"], ["updated_at", "2015-08-16 19:07:14.022585"]]
849
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 19:07:14.023438"], ["updated_at", "2015-08-16 19:07:14.023438"]]
850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
851
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", 1]]
852
+  (0.5ms) rollback transaction
853
+  (0.0ms) begin transaction
854
+ -----------------------------------------------------
855
+ HasDefaultAssociationTest: test_builds_default_models
856
+ -----------------------------------------------------
857
+  (0.0ms) rollback transaction
858
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
859
+  (0.1ms) begin transaction
860
+ ------------------------------------------------------------
861
+ HasDefaultAssociationTest: test_eager_associations_are_saved
862
+ ------------------------------------------------------------
863
+  (0.1ms) SAVEPOINT active_record_1
864
+ SQL (0.4ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 19:14:43.998544"], ["updated_at", "2015-08-16 19:14:43.998544"]]
865
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 19:14:44.001612"], ["updated_at", "2015-08-16 19:14:44.001612"]]
866
+  (0.1ms) RELEASE SAVEPOINT active_record_1
867
+  (1.1ms) rollback transaction
868
+  (0.1ms) begin transaction
869
+ ------------------------------------------------------------------------
870
+ HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
871
+ ------------------------------------------------------------------------
872
+  (0.0ms) rollback transaction
873
+  (0.0ms) begin transaction
874
+ --------------------------------------------------------
875
+ HasDefaultAssociationTest: test_loads_saved_associations
876
+ --------------------------------------------------------
877
+  (0.0ms) SAVEPOINT active_record_1
878
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 19:14:44.008278"], ["updated_at", "2015-08-16 19:14:44.008278"]]
879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
880
+  (0.0ms) SAVEPOINT active_record_1
881
+ SQL (0.3ms) INSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?) [["author_id", 1], ["created_at", "2015-08-16 19:14:44.010341"], ["updated_at", "2015-08-16 19:14:44.010341"]]
882
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 19:14:44.011191"], ["updated_at", "2015-08-16 19:14:44.011191"]]
883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
884
+  (0.6ms) rollback transaction
885
+  (0.0ms) begin transaction
886
+ --------------------------------------------------------------------------
887
+ HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
888
+ --------------------------------------------------------------------------
889
+  (0.1ms) rollback transaction
890
+  (0.1ms) begin transaction
891
+ -----------------------------------------------------
892
+ HasDefaultAssociationTest: test_builds_default_models
893
+ -----------------------------------------------------
894
+  (0.0ms) rollback transaction
895
+  (0.0ms) begin transaction
896
+ ----------------------------------------------------------
897
+ HasDefaultAssociationTest: test_infers_correct_model_class
898
+ ----------------------------------------------------------
899
+  (0.0ms) rollback transaction
900
+  (0.0ms) begin transaction
901
+ -------------------------------------------------------------------------
902
+ HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
903
+ -------------------------------------------------------------------------
904
+  (0.0ms) rollback transaction
905
+  (0.0ms) begin transaction
906
+ -----------------------------------------------------------------
907
+ HasDefaultAssociationTest: test_eagerly_instantiates_associations
908
+ -----------------------------------------------------------------
909
+  (0.0ms) rollback transaction
910
+  (0.0ms) begin transaction
911
+ --------------------------------------------------------------------------------
912
+ HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
913
+ --------------------------------------------------------------------------------
914
+  (0.0ms) rollback transaction
915
+  (0.0ms) begin transaction
916
+ ---------------------------------------------------------------------------------------
917
+ HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
918
+ ---------------------------------------------------------------------------------------
919
+  (0.0ms) SAVEPOINT active_record_1
920
+ SQL (0.3ms) INSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-16 19:14:44.028791"], ["updated_at", "2015-08-16 19:14:44.028791"]]
921
+ SQL (0.1ms) INSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["text", "'' is just swell!"], ["book_id", 1], ["created_at", "2015-08-16 19:14:44.029773"], ["updated_at", "2015-08-16 19:14:44.029773"]]
922
+  (0.0ms) RELEASE SAVEPOINT active_record_1
923
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", 1]]
924
+  (0.5ms) rollback transaction