has_default_association 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +34 -0
- data/lib/has_default_association.rb +63 -0
- data/lib/has_default_association/version.rb +3 -0
- data/lib/tasks/has_default_association_tasks.rake +4 -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 +15 -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/views/layouts/application.html.erb +13 -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/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +32 -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 +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -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 +4 -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/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20150815045153_create_books.rb +10 -0
- data/test/dummy/db/migrate/20150815045203_create_people.rb +9 -0
- data/test/dummy/db/migrate/20150815045223_create_summaries.rb +10 -0
- data/test/dummy/db/migrate/20150816140025_create_reviews.rb +11 -0
- data/test/dummy/db/schema.rb +44 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +67 -0
- data/test/dummy/log/test.log +924 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/books.yml +7 -0
- data/test/dummy/test/fixtures/people.yml +7 -0
- data/test/dummy/test/fixtures/summaries.yml +7 -0
- data/test/dummy/test/models/book_test.rb +7 -0
- data/test/dummy/test/models/person_test.rb +7 -0
- data/test/dummy/test/models/summary_test.rb +7 -0
- data/test/has_default_association_test.rb +127 -0
- data/test/test_helper.rb +18 -0
- 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,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,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"] %>
|
Binary file
|
@@ -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
|
Binary file
|
@@ -0,0 +1,67 @@
|
|
1
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateBooks (20150815045153)
|
6
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
8
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150815045153"]]
|
9
|
+
[1m[35m (0.9ms)[0m commit transaction
|
10
|
+
Migrating to CreatePeople (20150815045203)
|
11
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
13
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150815045203"]]
|
14
|
+
[1m[35m (0.8ms)[0m commit transaction
|
15
|
+
Migrating to CreateSummaries (20150815045223)
|
16
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "summaries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
18
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150815045223"]]
|
19
|
+
[1m[35m (0.7ms)[0m commit transaction
|
20
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
22
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
23
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
24
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
25
|
+
Migrating to CreateBooks (20150815045153)
|
26
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
27
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150815045153"]]
|
29
|
+
[1m[35m (0.8ms)[0m commit transaction
|
30
|
+
Migrating to CreatePeople (20150815045203)
|
31
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
33
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150815045203"]]
|
34
|
+
[1m[35m (0.7ms)[0m commit transaction
|
35
|
+
Migrating to CreateSummaries (20150815045223)
|
36
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
37
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "summaries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
38
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150815045223"]]
|
39
|
+
[1m[35m (0.7ms)[0m commit transaction
|
40
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
41
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
42
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
43
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
44
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
45
|
+
Migrating to CreateBooks (20150815045153)
|
46
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
47
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150815045153"]]
|
49
|
+
[1m[35m (0.7ms)[0m commit transaction
|
50
|
+
Migrating to CreatePeople (20150815045203)
|
51
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
52
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
53
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150815045203"]]
|
54
|
+
[1m[35m (0.8ms)[0m commit transaction
|
55
|
+
Migrating to CreateSummaries (20150815045223)
|
56
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
57
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150815045223"]]
|
59
|
+
[1m[35m (0.7ms)[0m commit transaction
|
60
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
61
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
62
|
+
Migrating to CreateReviews (20150816140025)
|
63
|
+
[1m[35m (0.1ms)[0m begin transaction
|
64
|
+
[1m[36m (0.5ms)[0m [1mCREATE 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) [0m
|
65
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150816140025"]]
|
66
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
67
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
@@ -0,0 +1,924 @@
|
|
1
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "author_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
3
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "summaries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar, "book_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
4
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
6
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
8
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150815045223')
|
9
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150815045153')[0m
|
10
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150815045203')
|
11
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
12
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13
|
+
-------------------------------------
|
14
|
+
HasDefaultAssociationTest: test_truth
|
15
|
+
-------------------------------------
|
16
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
17
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19
|
+
-----------------------------------------------------
|
20
|
+
HasDefaultAssociationTest: test_builds_default_models
|
21
|
+
-----------------------------------------------------
|
22
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
23
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
24
|
+
[1m[35m (0.1ms)[0m begin transaction
|
25
|
+
----------------------------------------------------------
|
26
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
27
|
+
----------------------------------------------------------
|
28
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
29
|
+
[1m[35m (0.0ms)[0m begin transaction
|
30
|
+
-----------------------------------------------------
|
31
|
+
HasDefaultAssociationTest: test_builds_default_models
|
32
|
+
-----------------------------------------------------
|
33
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
34
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35
|
+
-------------------------------------------------------------------------
|
36
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
37
|
+
-------------------------------------------------------------------------
|
38
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
39
|
+
[1m[35m (0.0ms)[0m begin transaction
|
40
|
+
--------------------------------------------------------------
|
41
|
+
HasDefaultAssociationTest: test_supports_custom_default_blocks
|
42
|
+
--------------------------------------------------------------
|
43
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
44
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
45
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46
|
+
--------------------------------------------------------------
|
47
|
+
HasDefaultAssociationTest: test_supports_custom_default_blocks
|
48
|
+
--------------------------------------------------------------
|
49
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
50
|
+
[1m[35m (0.0ms)[0m begin transaction
|
51
|
+
-----------------------------------------------------
|
52
|
+
HasDefaultAssociationTest: test_builds_default_models
|
53
|
+
-----------------------------------------------------
|
54
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
55
|
+
[1m[35m (0.0ms)[0m begin transaction
|
56
|
+
-------------------------------------------------------------------------
|
57
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
58
|
+
-------------------------------------------------------------------------
|
59
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
60
|
+
[1m[35m (0.0ms)[0m begin transaction
|
61
|
+
----------------------------------------------------------
|
62
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
63
|
+
----------------------------------------------------------
|
64
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
65
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
66
|
+
[1m[35m (0.1ms)[0m begin transaction
|
67
|
+
-----------------------------------------------------
|
68
|
+
HasDefaultAssociationTest: test_builds_default_models
|
69
|
+
-----------------------------------------------------
|
70
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
71
|
+
[1m[35m (0.0ms)[0m begin transaction
|
72
|
+
----------------------------------------------------------
|
73
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
74
|
+
----------------------------------------------------------
|
75
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
76
|
+
[1m[35m (0.0ms)[0m begin transaction
|
77
|
+
-------------------------------------------------------------------------
|
78
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
79
|
+
-------------------------------------------------------------------------
|
80
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
81
|
+
[1m[35m (0.0ms)[0m begin transaction
|
82
|
+
--------------------------------------------------------------
|
83
|
+
HasDefaultAssociationTest: test_supports_custom_default_blocks
|
84
|
+
--------------------------------------------------------------
|
85
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
86
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
87
|
+
[1m[35m (0.1ms)[0m begin transaction
|
88
|
+
--------------------------------------------------------------
|
89
|
+
HasDefaultAssociationTest: test_supports_custom_default_blocks
|
90
|
+
--------------------------------------------------------------
|
91
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
92
|
+
[1m[35m (0.0ms)[0m begin transaction
|
93
|
+
--------------------------------------------------------
|
94
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
95
|
+
--------------------------------------------------------
|
96
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
97
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
99
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
100
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
101
|
+
-----------------------------------------------------
|
102
|
+
HasDefaultAssociationTest: test_builds_default_models
|
103
|
+
-----------------------------------------------------
|
104
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
105
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
106
|
+
-------------------------------------------------------------------------
|
107
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
108
|
+
-------------------------------------------------------------------------
|
109
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
110
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
111
|
+
----------------------------------------------------------
|
112
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
113
|
+
----------------------------------------------------------
|
114
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
115
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
116
|
+
[1m[35m (0.1ms)[0m begin transaction
|
117
|
+
-----------------------------------------------------
|
118
|
+
HasDefaultAssociationTest: test_builds_default_models
|
119
|
+
-----------------------------------------------------
|
120
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
121
|
+
[1m[35m (0.0ms)[0m begin transaction
|
122
|
+
----------------------------------------------------------
|
123
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
124
|
+
----------------------------------------------------------
|
125
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
126
|
+
[1m[35m (0.0ms)[0m begin transaction
|
127
|
+
--------------------------------------------------------------
|
128
|
+
HasDefaultAssociationTest: test_supports_custom_default_blocks
|
129
|
+
--------------------------------------------------------------
|
130
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131
|
+
[1m[35m (0.0ms)[0m begin transaction
|
132
|
+
--------------------------------------------------------
|
133
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
134
|
+
--------------------------------------------------------
|
135
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
136
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
138
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
139
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140
|
+
-------------------------------------------------------------------------
|
141
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
142
|
+
-------------------------------------------------------------------------
|
143
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
144
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
145
|
+
[1m[35m (0.1ms)[0m begin transaction
|
146
|
+
--------------------------------------------------------
|
147
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
148
|
+
--------------------------------------------------------
|
149
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
150
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
152
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
153
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["author_id", 1], ["created_at", "2015-08-15 05:19:55.069708"], ["updated_at", "2015-08-15 05:19:55.069708"]]
|
154
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
155
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
156
|
+
[1m[35m (0.1ms)[0m begin transaction
|
157
|
+
-----------------------------------------------------
|
158
|
+
HasDefaultAssociationTest: test_builds_default_models
|
159
|
+
-----------------------------------------------------
|
160
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
161
|
+
[1m[35m (0.1ms)[0m begin transaction
|
162
|
+
----------------------------------------------------------
|
163
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
164
|
+
----------------------------------------------------------
|
165
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
166
|
+
[1m[35m (0.0ms)[0m begin transaction
|
167
|
+
-------------------------------------------------------------------------
|
168
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
169
|
+
-------------------------------------------------------------------------
|
170
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
171
|
+
[1m[35m (0.0ms)[0m begin transaction
|
172
|
+
--------------------------------------------------------------
|
173
|
+
HasDefaultAssociationTest: test_supports_custom_default_blocks
|
174
|
+
--------------------------------------------------------------
|
175
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
176
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
177
|
+
[1m[35m (0.1ms)[0m begin transaction
|
178
|
+
----------------------------------------------------------
|
179
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
180
|
+
----------------------------------------------------------
|
181
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
182
|
+
[1m[35m (0.0ms)[0m begin transaction
|
183
|
+
-------------------------------------------------------------------------
|
184
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
185
|
+
-------------------------------------------------------------------------
|
186
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
187
|
+
[1m[35m (0.1ms)[0m begin transaction
|
188
|
+
-----------------------------------------------------
|
189
|
+
HasDefaultAssociationTest: test_builds_default_models
|
190
|
+
-----------------------------------------------------
|
191
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
192
|
+
[1m[35m (0.0ms)[0m begin transaction
|
193
|
+
--------------------------------------------------------------------------------
|
194
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
195
|
+
--------------------------------------------------------------------------------
|
196
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
197
|
+
[1m[35m (0.1ms)[0m begin transaction
|
198
|
+
--------------------------------------------------------
|
199
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
200
|
+
--------------------------------------------------------
|
201
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
202
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
204
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
205
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["author_id", 1], ["created_at", "2015-08-16 04:02:25.771917"], ["updated_at", "2015-08-16 04:02:25.771917"]]
|
206
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
208
|
+
[1m[35m (0.0ms)[0m begin transaction
|
209
|
+
------------------------------------------------------------------------
|
210
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
211
|
+
------------------------------------------------------------------------
|
212
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
213
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
214
|
+
[1m[35m (0.1ms)[0m begin transaction
|
215
|
+
------------------------------------------------------------------------
|
216
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
217
|
+
------------------------------------------------------------------------
|
218
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
219
|
+
[1m[35m (0.0ms)[0m begin transaction
|
220
|
+
--------------------------------------------------------------------------------
|
221
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
222
|
+
--------------------------------------------------------------------------------
|
223
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
224
|
+
[1m[35m (0.0ms)[0m begin transaction
|
225
|
+
--------------------------------------------------------
|
226
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
227
|
+
--------------------------------------------------------
|
228
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
232
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["author_id", 1], ["created_at", "2015-08-16 04:02:58.063714"], ["updated_at", "2015-08-16 04:02:58.063714"]]
|
233
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
234
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
235
|
+
[1m[35m (0.1ms)[0m begin transaction
|
236
|
+
----------------------------------------------------------
|
237
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
238
|
+
----------------------------------------------------------
|
239
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
240
|
+
[1m[35m (0.0ms)[0m begin transaction
|
241
|
+
-------------------------------------------------------------------------
|
242
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
243
|
+
-------------------------------------------------------------------------
|
244
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
245
|
+
[1m[35m (0.0ms)[0m begin transaction
|
246
|
+
-----------------------------------------------------
|
247
|
+
HasDefaultAssociationTest: test_builds_default_models
|
248
|
+
-----------------------------------------------------
|
249
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
250
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
251
|
+
[1m[35m (0.1ms)[0m begin transaction
|
252
|
+
--------------------------------------------------------------------------------
|
253
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
254
|
+
--------------------------------------------------------------------------------
|
255
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
256
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
257
|
+
[1m[35m (0.1ms)[0m begin transaction
|
258
|
+
--------------------------------------------------------------------------------
|
259
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
260
|
+
--------------------------------------------------------------------------------
|
261
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
262
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
263
|
+
[1m[35m (0.1ms)[0m begin transaction
|
264
|
+
--------------------------------------------------------------------------------
|
265
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
266
|
+
--------------------------------------------------------------------------------
|
267
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
268
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
269
|
+
[1m[35m (0.1ms)[0m begin transaction
|
270
|
+
--------------------------------------------------------------------------------
|
271
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
272
|
+
--------------------------------------------------------------------------------
|
273
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
274
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
275
|
+
[1m[35m (0.1ms)[0m begin transaction
|
276
|
+
--------------------------------------------------------------------------------
|
277
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
278
|
+
--------------------------------------------------------------------------------
|
279
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
280
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
281
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282
|
+
--------------------------------------------------------
|
283
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
284
|
+
--------------------------------------------------------
|
285
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
286
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
288
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
289
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["author_id", 1], ["created_at", "2015-08-16 04:09:23.498616"], ["updated_at", "2015-08-16 04:09:23.498616"]]
|
290
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
291
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
292
|
+
[1m[35m (0.0ms)[0m begin transaction
|
293
|
+
------------------------------------------------------------------------
|
294
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
295
|
+
------------------------------------------------------------------------
|
296
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
297
|
+
[1m[35m (0.0ms)[0m begin transaction
|
298
|
+
-------------------------------------------------------------------------
|
299
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
300
|
+
-------------------------------------------------------------------------
|
301
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
302
|
+
[1m[35m (0.0ms)[0m begin transaction
|
303
|
+
----------------------------------------------------------
|
304
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
305
|
+
----------------------------------------------------------
|
306
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
307
|
+
[1m[35m (0.0ms)[0m begin transaction
|
308
|
+
--------------------------------------------------------------------------------
|
309
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
310
|
+
--------------------------------------------------------------------------------
|
311
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
312
|
+
[1m[35m (0.0ms)[0m begin transaction
|
313
|
+
-----------------------------------------------------
|
314
|
+
HasDefaultAssociationTest: test_builds_default_models
|
315
|
+
-----------------------------------------------------
|
316
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
317
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
318
|
+
[1m[35m (0.1ms)[0m begin transaction
|
319
|
+
----------------------------------------------------------
|
320
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
321
|
+
----------------------------------------------------------
|
322
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
323
|
+
[1m[35m (0.1ms)[0m begin transaction
|
324
|
+
------------------------------------------------------------------------
|
325
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
326
|
+
------------------------------------------------------------------------
|
327
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
328
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329
|
+
-------------------------------------------------------------------------
|
330
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
331
|
+
-------------------------------------------------------------------------
|
332
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
333
|
+
[1m[35m (0.0ms)[0m begin transaction
|
334
|
+
--------------------------------------------------------------------------------
|
335
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
336
|
+
--------------------------------------------------------------------------------
|
337
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
338
|
+
[1m[35m (0.0ms)[0m begin transaction
|
339
|
+
--------------------------------------------------------
|
340
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
341
|
+
--------------------------------------------------------
|
342
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
343
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
345
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
346
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["author_id", 1], ["created_at", "2015-08-16 13:53:34.097592"], ["updated_at", "2015-08-16 13:53:34.097592"]]
|
347
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
348
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
349
|
+
[1m[35m (0.0ms)[0m begin transaction
|
350
|
+
-----------------------------------------------------
|
351
|
+
HasDefaultAssociationTest: test_builds_default_models
|
352
|
+
-----------------------------------------------------
|
353
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
354
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
355
|
+
[1m[35m (0.1ms)[0m begin transaction
|
356
|
+
----------------------------------------------------------
|
357
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
358
|
+
----------------------------------------------------------
|
359
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
360
|
+
[1m[35m (0.0ms)[0m begin transaction
|
361
|
+
-------------------------------------------------------------------------
|
362
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
363
|
+
-------------------------------------------------------------------------
|
364
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
365
|
+
[1m[35m (0.0ms)[0m begin transaction
|
366
|
+
--------------------------------------------------------
|
367
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
368
|
+
--------------------------------------------------------
|
369
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
370
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
372
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
373
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["author_id", 1], ["created_at", "2015-08-16 13:55:17.710634"], ["updated_at", "2015-08-16 13:55:17.710634"]]
|
374
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
375
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
377
|
+
------------------------------------------------------------------------
|
378
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
379
|
+
------------------------------------------------------------------------
|
380
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
381
|
+
[1m[35m (0.0ms)[0m begin transaction
|
382
|
+
--------------------------------------------------------------------------------
|
383
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
384
|
+
--------------------------------------------------------------------------------
|
385
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
386
|
+
[1m[35m (0.0ms)[0m begin transaction
|
387
|
+
-----------------------------------------------------
|
388
|
+
HasDefaultAssociationTest: test_builds_default_models
|
389
|
+
-----------------------------------------------------
|
390
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
391
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
392
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "author_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
393
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
394
|
+
[1m[36m (1.2ms)[0m [1mCREATE 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) [0m
|
395
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
397
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
398
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
399
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
400
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150816140025')[0m
|
401
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150815045153')
|
402
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150815045203')[0m
|
403
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150815045223')
|
404
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
405
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
406
|
+
--------------------------------------------------------
|
407
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
408
|
+
--------------------------------------------------------
|
409
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
410
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-08-16 14:01:38.269285"], ["updated_at", "2015-08-16 14:01:38.269285"]]
|
411
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
412
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
413
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
415
|
+
[1m[35m (1.3ms)[0m rollback transaction
|
416
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
417
|
+
----------------------------------------------------------
|
418
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
419
|
+
----------------------------------------------------------
|
420
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
421
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
422
|
+
-----------------------------------------------------
|
423
|
+
HasDefaultAssociationTest: test_builds_default_models
|
424
|
+
-----------------------------------------------------
|
425
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
426
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
427
|
+
-------------------------------------------------------------------------
|
428
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
429
|
+
-------------------------------------------------------------------------
|
430
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
431
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
432
|
+
------------------------------------------------------------------------
|
433
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
434
|
+
------------------------------------------------------------------------
|
435
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
436
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
437
|
+
--------------------------------------------------------------------------------
|
438
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
439
|
+
--------------------------------------------------------------------------------
|
440
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
441
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
442
|
+
[1m[35m (0.1ms)[0m begin transaction
|
443
|
+
--------------------------------------------------------
|
444
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
445
|
+
--------------------------------------------------------
|
446
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
447
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
449
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
450
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["author_id", 1], ["created_at", "2015-08-16 14:03:57.392635"], ["updated_at", "2015-08-16 14:03:57.392635"]]
|
451
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
452
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
453
|
+
[1m[35m (0.1ms)[0m begin transaction
|
454
|
+
--------------------------------------------------------------------------
|
455
|
+
HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
|
456
|
+
--------------------------------------------------------------------------
|
457
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
458
|
+
[1m[35m (0.0ms)[0m begin transaction
|
459
|
+
-------------------------------------------------------------------------
|
460
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
461
|
+
-------------------------------------------------------------------------
|
462
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
463
|
+
[1m[35m (0.0ms)[0m begin transaction
|
464
|
+
------------------------------------------------------------------------
|
465
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
466
|
+
------------------------------------------------------------------------
|
467
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
468
|
+
[1m[35m (0.0ms)[0m begin transaction
|
469
|
+
----------------------------------------------------------
|
470
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
471
|
+
----------------------------------------------------------
|
472
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
473
|
+
[1m[35m (0.0ms)[0m begin transaction
|
474
|
+
-----------------------------------------------------
|
475
|
+
HasDefaultAssociationTest: test_builds_default_models
|
476
|
+
-----------------------------------------------------
|
477
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
478
|
+
[1m[35m (0.0ms)[0m begin transaction
|
479
|
+
--------------------------------------------------------------------------------
|
480
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
481
|
+
--------------------------------------------------------------------------------
|
482
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
483
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
484
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
485
|
+
[1m[35m (0.1ms)[0m begin transaction
|
486
|
+
-----------------------------------------------------
|
487
|
+
HasDefaultAssociationTest: test_builds_default_models
|
488
|
+
-----------------------------------------------------
|
489
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
490
|
+
[1m[35m (0.0ms)[0m begin transaction
|
491
|
+
--------------------------------------------------------------
|
492
|
+
HasDefaultAssociationTest: test_eagerly_instantiates_relations
|
493
|
+
--------------------------------------------------------------
|
494
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
495
|
+
[1m[35m (0.0ms)[0m begin transaction
|
496
|
+
------------------------------------------------------------------------
|
497
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
498
|
+
------------------------------------------------------------------------
|
499
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
500
|
+
[1m[35m (0.0ms)[0m begin transaction
|
501
|
+
--------------------------------------------------------------------------------
|
502
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
503
|
+
--------------------------------------------------------------------------------
|
504
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
505
|
+
[1m[35m (0.0ms)[0m begin transaction
|
506
|
+
--------------------------------------------------------
|
507
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
508
|
+
--------------------------------------------------------
|
509
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
510
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
512
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
513
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["author_id", 1], ["created_at", "2015-08-16 15:30:31.765014"], ["updated_at", "2015-08-16 15:30:31.765014"]]
|
514
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
516
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
517
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
518
|
+
--------------------------------------------------------------------------
|
519
|
+
HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
|
520
|
+
--------------------------------------------------------------------------
|
521
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
522
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
523
|
+
-------------------------------------------------------------------------
|
524
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
525
|
+
-------------------------------------------------------------------------
|
526
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
527
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
528
|
+
---------------------------------------------------------------------------------------
|
529
|
+
HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
|
530
|
+
---------------------------------------------------------------------------------------
|
531
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
532
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-08-16 15:30:31.774965"], ["updated_at", "2015-08-16 15:30:31.774965"]]
|
533
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
535
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
536
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
537
|
+
----------------------------------------------------------
|
538
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
539
|
+
----------------------------------------------------------
|
540
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
541
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
542
|
+
[1m[35m (0.1ms)[0m begin transaction
|
543
|
+
-------------------------------------------------------------------------
|
544
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
545
|
+
-------------------------------------------------------------------------
|
546
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
547
|
+
[1m[35m (0.0ms)[0m begin transaction
|
548
|
+
--------------------------------------------------------------------------------
|
549
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
550
|
+
--------------------------------------------------------------------------------
|
551
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
552
|
+
[1m[35m (0.0ms)[0m begin transaction
|
553
|
+
--------------------------------------------------------------
|
554
|
+
HasDefaultAssociationTest: test_eagerly_instantiates_relations
|
555
|
+
--------------------------------------------------------------
|
556
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
557
|
+
[1m[35m (0.0ms)[0m begin transaction
|
558
|
+
---------------------------------------------------------------------------------------
|
559
|
+
HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
|
560
|
+
---------------------------------------------------------------------------------------
|
561
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
562
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
565
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", 1]]
|
566
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
567
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
568
|
+
------------------------------------------------------------------------
|
569
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
570
|
+
------------------------------------------------------------------------
|
571
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
572
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
573
|
+
----------------------------------------------------------
|
574
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
575
|
+
----------------------------------------------------------
|
576
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
577
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
578
|
+
--------------------------------------------------------
|
579
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
580
|
+
--------------------------------------------------------
|
581
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
582
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-08-16 15:31:01.672302"], ["updated_at", "2015-08-16 15:31:01.672302"]]
|
583
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
584
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
585
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
588
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
589
|
+
[1m[35m (0.0ms)[0m begin transaction
|
590
|
+
--------------------------------------------------------------------------
|
591
|
+
HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
|
592
|
+
--------------------------------------------------------------------------
|
593
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
594
|
+
[1m[35m (0.0ms)[0m begin transaction
|
595
|
+
-----------------------------------------------------
|
596
|
+
HasDefaultAssociationTest: test_builds_default_models
|
597
|
+
-----------------------------------------------------
|
598
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
599
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
600
|
+
[1m[35m (0.1ms)[0m begin transaction
|
601
|
+
--------------------------------------------------------
|
602
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
603
|
+
--------------------------------------------------------
|
604
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
605
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
607
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
608
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["author_id", 1], ["created_at", "2015-08-16 15:31:45.467345"], ["updated_at", "2015-08-16 15:31:45.467345"]]
|
609
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
611
|
+
[1m[35m (1.3ms)[0m rollback transaction
|
612
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
613
|
+
-----------------------------------------------------
|
614
|
+
HasDefaultAssociationTest: test_builds_default_models
|
615
|
+
-----------------------------------------------------
|
616
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
617
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
618
|
+
------------------------------------------------------------------------
|
619
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
620
|
+
------------------------------------------------------------------------
|
621
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
622
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
623
|
+
---------------------------------------------------------------------------------------
|
624
|
+
HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
|
625
|
+
---------------------------------------------------------------------------------------
|
626
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
627
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-08-16 15:31:45.475636"], ["updated_at", "2015-08-16 15:31:45.475636"]]
|
628
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
630
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", 1]]
|
631
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
632
|
+
[1m[35m (0.1ms)[0m begin transaction
|
633
|
+
--------------------------------------------------------------
|
634
|
+
HasDefaultAssociationTest: test_eagerly_instantiates_relations
|
635
|
+
--------------------------------------------------------------
|
636
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
637
|
+
[1m[35m (0.0ms)[0m begin transaction
|
638
|
+
--------------------------------------------------------------------------------
|
639
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
640
|
+
--------------------------------------------------------------------------------
|
641
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
642
|
+
[1m[35m (0.0ms)[0m begin transaction
|
643
|
+
-------------------------------------------------------------------------
|
644
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
645
|
+
-------------------------------------------------------------------------
|
646
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
647
|
+
[1m[35m (0.0ms)[0m begin transaction
|
648
|
+
--------------------------------------------------------------------------
|
649
|
+
HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
|
650
|
+
--------------------------------------------------------------------------
|
651
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
652
|
+
[1m[35m (0.0ms)[0m begin transaction
|
653
|
+
----------------------------------------------------------
|
654
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
655
|
+
----------------------------------------------------------
|
656
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
657
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
658
|
+
[1m[35m (0.1ms)[0m begin transaction
|
659
|
+
--------------------------------------------------------------------------------
|
660
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
661
|
+
--------------------------------------------------------------------------------
|
662
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
663
|
+
[1m[35m (0.0ms)[0m begin transaction
|
664
|
+
--------------------------------------------------------------------------
|
665
|
+
HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
|
666
|
+
--------------------------------------------------------------------------
|
667
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
668
|
+
[1m[35m (0.0ms)[0m begin transaction
|
669
|
+
----------------------------------------------------------
|
670
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
671
|
+
----------------------------------------------------------
|
672
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
673
|
+
[1m[35m (0.0ms)[0m begin transaction
|
674
|
+
---------------------------------------------------------------------------------------
|
675
|
+
HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
|
676
|
+
---------------------------------------------------------------------------------------
|
677
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
678
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
681
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", 1]]
|
682
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
683
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
684
|
+
-----------------------------------------------------------------
|
685
|
+
HasDefaultAssociationTest: test_eagerly_instantiates_associations
|
686
|
+
-----------------------------------------------------------------
|
687
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
688
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
689
|
+
-----------------------------------------------------
|
690
|
+
HasDefaultAssociationTest: test_builds_default_models
|
691
|
+
-----------------------------------------------------
|
692
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
693
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
694
|
+
--------------------------------------------------------
|
695
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
696
|
+
--------------------------------------------------------
|
697
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
698
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-08-16 15:32:49.734502"], ["updated_at", "2015-08-16 15:32:49.734502"]]
|
699
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
700
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
701
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
704
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
705
|
+
[1m[35m (0.0ms)[0m begin transaction
|
706
|
+
------------------------------------------------------------
|
707
|
+
HasDefaultAssociationTest: test_eager_associations_are_saved
|
708
|
+
------------------------------------------------------------
|
709
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
710
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
713
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
714
|
+
[1m[35m (0.0ms)[0m begin transaction
|
715
|
+
-------------------------------------------------------------------------
|
716
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
717
|
+
-------------------------------------------------------------------------
|
718
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
719
|
+
[1m[35m (0.0ms)[0m begin transaction
|
720
|
+
------------------------------------------------------------------------
|
721
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
722
|
+
------------------------------------------------------------------------
|
723
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
724
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
725
|
+
[1m[35m (0.1ms)[0m begin transaction
|
726
|
+
---------------------------------------------------------------------------------------
|
727
|
+
HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
|
728
|
+
---------------------------------------------------------------------------------------
|
729
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
730
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
733
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", 1]]
|
734
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
735
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
736
|
+
-------------------------------------------------------------------------
|
737
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
738
|
+
-------------------------------------------------------------------------
|
739
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
740
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
741
|
+
--------------------------------------------------------
|
742
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
743
|
+
--------------------------------------------------------
|
744
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
745
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-08-16 15:35:41.257797"], ["updated_at", "2015-08-16 15:35:41.257797"]]
|
746
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
747
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
748
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
751
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
752
|
+
[1m[35m (0.0ms)[0m begin transaction
|
753
|
+
------------------------------------------------------------
|
754
|
+
HasDefaultAssociationTest: test_eager_associations_are_saved
|
755
|
+
------------------------------------------------------------
|
756
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
757
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
760
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
761
|
+
[1m[35m (0.0ms)[0m begin transaction
|
762
|
+
--------------------------------------------------------------------------------
|
763
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
764
|
+
--------------------------------------------------------------------------------
|
765
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
766
|
+
[1m[35m (0.0ms)[0m begin transaction
|
767
|
+
-----------------------------------------------------
|
768
|
+
HasDefaultAssociationTest: test_builds_default_models
|
769
|
+
-----------------------------------------------------
|
770
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
771
|
+
[1m[35m (0.0ms)[0m begin transaction
|
772
|
+
--------------------------------------------------------------------------
|
773
|
+
HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
|
774
|
+
--------------------------------------------------------------------------
|
775
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
776
|
+
[1m[35m (0.0ms)[0m begin transaction
|
777
|
+
----------------------------------------------------------
|
778
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
779
|
+
----------------------------------------------------------
|
780
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
781
|
+
[1m[35m (0.1ms)[0m begin transaction
|
782
|
+
------------------------------------------------------------------------
|
783
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
784
|
+
------------------------------------------------------------------------
|
785
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
786
|
+
[1m[35m (0.1ms)[0m begin transaction
|
787
|
+
-----------------------------------------------------------------
|
788
|
+
HasDefaultAssociationTest: test_eagerly_instantiates_associations
|
789
|
+
-----------------------------------------------------------------
|
790
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
791
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
792
|
+
[1m[35m (0.1ms)[0m begin transaction
|
793
|
+
-------------------------------------------------------------------------
|
794
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
795
|
+
-------------------------------------------------------------------------
|
796
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
797
|
+
[1m[35m (0.1ms)[0m begin transaction
|
798
|
+
--------------------------------------------------------
|
799
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
800
|
+
--------------------------------------------------------
|
801
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
802
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
804
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
805
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["author_id", 1], ["created_at", "2015-08-16 19:07:13.998254"], ["updated_at", "2015-08-16 19:07:13.998254"]]
|
806
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
808
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
809
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
810
|
+
-----------------------------------------------------------------
|
811
|
+
HasDefaultAssociationTest: test_eagerly_instantiates_associations
|
812
|
+
-----------------------------------------------------------------
|
813
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
814
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
815
|
+
--------------------------------------------------------------------------
|
816
|
+
HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
|
817
|
+
--------------------------------------------------------------------------
|
818
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
819
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
820
|
+
------------------------------------------------------------
|
821
|
+
HasDefaultAssociationTest: test_eager_associations_are_saved
|
822
|
+
------------------------------------------------------------
|
823
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
824
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-08-16 19:07:14.011956"], ["updated_at", "2015-08-16 19:07:14.011956"]]
|
825
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
827
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
828
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
829
|
+
------------------------------------------------------------------------
|
830
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
831
|
+
------------------------------------------------------------------------
|
832
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
833
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
834
|
+
----------------------------------------------------------
|
835
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
836
|
+
----------------------------------------------------------
|
837
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
838
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
839
|
+
--------------------------------------------------------------------------------
|
840
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
841
|
+
--------------------------------------------------------------------------------
|
842
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
843
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
844
|
+
---------------------------------------------------------------------------------------
|
845
|
+
HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
|
846
|
+
---------------------------------------------------------------------------------------
|
847
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
848
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-08-16 19:07:14.022585"], ["updated_at", "2015-08-16 19:07:14.022585"]]
|
849
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
851
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", 1]]
|
852
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
853
|
+
[1m[35m (0.0ms)[0m begin transaction
|
854
|
+
-----------------------------------------------------
|
855
|
+
HasDefaultAssociationTest: test_builds_default_models
|
856
|
+
-----------------------------------------------------
|
857
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
858
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
859
|
+
[1m[35m (0.1ms)[0m begin transaction
|
860
|
+
------------------------------------------------------------
|
861
|
+
HasDefaultAssociationTest: test_eager_associations_are_saved
|
862
|
+
------------------------------------------------------------
|
863
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
864
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "summaries" ("text", "book_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
867
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
868
|
+
[1m[35m (0.1ms)[0m begin transaction
|
869
|
+
------------------------------------------------------------------------
|
870
|
+
HasDefaultAssociationTest: test_builds_default_models_with_custom_blocks
|
871
|
+
------------------------------------------------------------------------
|
872
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
873
|
+
[1m[35m (0.0ms)[0m begin transaction
|
874
|
+
--------------------------------------------------------
|
875
|
+
HasDefaultAssociationTest: test_loads_saved_associations
|
876
|
+
--------------------------------------------------------
|
877
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
878
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
880
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
881
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("author_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["author_id", 1], ["created_at", "2015-08-16 19:14:44.010341"], ["updated_at", "2015-08-16 19:14:44.010341"]]
|
882
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
884
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
885
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
886
|
+
--------------------------------------------------------------------------
|
887
|
+
HasDefaultAssociationTest: test_multiple_relations_can_be_declared_at_once
|
888
|
+
--------------------------------------------------------------------------
|
889
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
890
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
891
|
+
-----------------------------------------------------
|
892
|
+
HasDefaultAssociationTest: test_builds_default_models
|
893
|
+
-----------------------------------------------------
|
894
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
895
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
896
|
+
----------------------------------------------------------
|
897
|
+
HasDefaultAssociationTest: test_infers_correct_model_class
|
898
|
+
----------------------------------------------------------
|
899
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
900
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
901
|
+
-------------------------------------------------------------------------
|
902
|
+
HasDefaultAssociationTest: test_does_not_overwrite_newly_set_associations
|
903
|
+
-------------------------------------------------------------------------
|
904
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
905
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
906
|
+
-----------------------------------------------------------------
|
907
|
+
HasDefaultAssociationTest: test_eagerly_instantiates_associations
|
908
|
+
-----------------------------------------------------------------
|
909
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
910
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
911
|
+
--------------------------------------------------------------------------------
|
912
|
+
HasDefaultAssociationTest: test_supports_one_to_many_relations_with_custom_block
|
913
|
+
--------------------------------------------------------------------------------
|
914
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
915
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
916
|
+
---------------------------------------------------------------------------------------
|
917
|
+
HasDefaultAssociationTest: test_does_not_eagerly_instantiate_relations_on_saved_records
|
918
|
+
---------------------------------------------------------------------------------------
|
919
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
920
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-08-16 19:14:44.028791"], ["updated_at", "2015-08-16 19:14:44.028791"]]
|
921
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
923
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", 1]]
|
924
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|