activerecord_any_of 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/MIT-LICENSE +20 -0
- data/README.md +83 -0
- data/Rakefile +38 -0
- data/lib/activerecord_any_of.rb +53 -0
- data/lib/activerecord_any_of/version.rb +3 -0
- data/test/activerecord_any_of_test.rb +27 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/author.rb +4 -0
- data/test/dummy/app/models/post.rb +4 -0
- data/test/dummy/app/models/special_post.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130617172335_create_authors.rb +9 -0
- data/test/dummy/db/migrate/20130617173313_create_posts.rb +12 -0
- data/test/dummy/db/schema.rb +31 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +90 -0
- data/test/dummy/log/test.log +372 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/authors.yml +7 -0
- data/test/dummy/test/fixtures/posts.yml +13 -0
- data/test/dummy/test/unit/author_test.rb +7 -0
- data/test/dummy/test/unit/post_test.rb +7 -0
- data/test/fixtures/authors.yml +11 -0
- data/test/fixtures/posts.yml +76 -0
- data/test/test_helper.rb +15 -0
- metadata +186 -0
Binary file
|
@@ -0,0 +1,31 @@
|
|
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 to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20130617173313) do
|
15
|
+
|
16
|
+
create_table "authors", :force => true do |t|
|
17
|
+
t.string "name"
|
18
|
+
t.datetime "created_at", :null => false
|
19
|
+
t.datetime "updated_at", :null => false
|
20
|
+
end
|
21
|
+
|
22
|
+
create_table "posts", :force => true do |t|
|
23
|
+
t.string "title"
|
24
|
+
t.text "body"
|
25
|
+
t.integer "author_id"
|
26
|
+
t.string "type"
|
27
|
+
t.datetime "created_at", :null => false
|
28
|
+
t.datetime "updated_at", :null => false
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
Binary file
|
@@ -0,0 +1,90 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
Connecting to database specified by database.yml
|
4
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
5
|
+
[1m[35m (292.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
6
|
+
[1m[36m (278.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
7
|
+
[1m[35m (2.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
8
|
+
Migrating to CreateAuthors (20130617172335)
|
9
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
11
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130617172335')[0m
|
12
|
+
[1m[35m (295.9ms)[0m commit transaction
|
13
|
+
Migrating to CreatePosts (20130617173313)
|
14
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
16
|
+
Connecting to database specified by database.yml
|
17
|
+
[1m[36m (0.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
18
|
+
Migrating to CreateAuthors (20130617172335)
|
19
|
+
Migrating to CreatePosts (20130617173313)
|
20
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
21
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
22
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id_id" integer, "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
23
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130617173313')[0m
|
24
|
+
[1m[35m (316.7ms)[0m commit transaction
|
25
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
26
|
+
Connecting to database specified by database.yml
|
27
|
+
[1m[36m (0.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
28
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
29
|
+
[1m[36m (286.8ms)[0m [1mCREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
30
|
+
[1m[35m (276.9ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id_id" integer, "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
31
|
+
[1m[36m (288.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
32
|
+
[1m[35m (289.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
33
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
34
|
+
[1m[35m (277.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130617173313')
|
35
|
+
[1m[36m (278.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130617172335')[0m
|
36
|
+
Connecting to database specified by database.yml
|
37
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
38
|
+
[1m[35m (272.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
39
|
+
[1m[36m (266.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
40
|
+
[1m[35m (1.4ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
41
|
+
Connecting to database specified by database.yml
|
42
|
+
[1m[36m (0.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
43
|
+
Migrating to CreateAuthors (20130617172335)
|
44
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
45
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
47
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130617172335')[0m
|
48
|
+
[1m[35m (276.6ms)[0m commit transaction
|
49
|
+
Migrating to CreatePosts (20130617173313)
|
50
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "author_id_id" integer, "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
52
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130617173313')[0m
|
53
|
+
[1m[35m (275.4ms)[0m commit transaction
|
54
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
55
|
+
Connecting to database specified by database.yml
|
56
|
+
[1m[36m (0.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
57
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
58
|
+
[1m[36m (335.2ms)[0m [1mCREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
59
|
+
[1m[35m (232.5ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "author_id_id" integer, "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
60
|
+
[1m[36m (277.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
61
|
+
[1m[35m (278.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
62
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
63
|
+
[1m[35m (277.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130617173313')
|
64
|
+
[1m[36m (278.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130617172335')[0m
|
65
|
+
Connecting to database specified by database.yml
|
66
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
67
|
+
[1m[35m (298.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
68
|
+
[1m[36m (279.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
69
|
+
[1m[35m (1.5ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
70
|
+
Migrating to CreateAuthors (20130617172335)
|
71
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
72
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
73
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130617172335')[0m
|
74
|
+
[1m[35m (305.8ms)[0m commit transaction
|
75
|
+
Migrating to CreatePosts (20130617173313)
|
76
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
77
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "author_id" integer, "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
78
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130617173313')[0m
|
79
|
+
[1m[35m (275.6ms)[0m commit transaction
|
80
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
81
|
+
Connecting to database specified by database.yml
|
82
|
+
[1m[36m (0.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
83
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
84
|
+
[1m[36m (284.4ms)[0m [1mCREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
85
|
+
[1m[35m (277.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "author_id" integer, "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
86
|
+
[1m[36m (299.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
87
|
+
[1m[35m (289.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
88
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
89
|
+
[1m[35m (288.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130617173313')
|
90
|
+
[1m[36m (289.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130617172335')[0m
|
@@ -0,0 +1,372 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Unable to load author, underlying cause No such file to load -- author
|
3
|
+
|
4
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:317:in `rescue in depend_on'
|
5
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:312:in `depend_on'
|
6
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
|
7
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:767:in `try_to_load_dependency'
|
8
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:782:in `block in require_fixture_classes'
|
9
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:779:in `each'
|
10
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:779:in `require_fixture_classes'
|
11
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:762:in `fixtures'
|
12
|
+
/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:4:in `<class:ActiverecordAnyOfTest>'
|
13
|
+
/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:3:in `<top (required)>'
|
14
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:10:in `require'
|
15
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
|
16
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:9:in `each'
|
17
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:9:in `block in <main>'
|
18
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:4:in `select'
|
19
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:4:in `<main>'
|
20
|
+
Unable to load post, underlying cause No such file to load -- post
|
21
|
+
|
22
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:317:in `rescue in depend_on'
|
23
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:312:in `depend_on'
|
24
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
|
25
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:767:in `try_to_load_dependency'
|
26
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:782:in `block in require_fixture_classes'
|
27
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:779:in `each'
|
28
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:779:in `require_fixture_classes'
|
29
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:762:in `fixtures'
|
30
|
+
/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:4:in `<class:ActiverecordAnyOfTest>'
|
31
|
+
/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:3:in `<top (required)>'
|
32
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:10:in `require'
|
33
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
|
34
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:9:in `each'
|
35
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:9:in `block in <main>'
|
36
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:4:in `select'
|
37
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:4:in `<main>'
|
38
|
+
Connecting to database specified by database.yml
|
39
|
+
Unable to load author, underlying cause No such file to load -- author
|
40
|
+
|
41
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:317:in `rescue in depend_on'
|
42
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:312:in `depend_on'
|
43
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
|
44
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:767:in `try_to_load_dependency'
|
45
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:782:in `block in require_fixture_classes'
|
46
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:779:in `each'
|
47
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:779:in `require_fixture_classes'
|
48
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:762:in `fixtures'
|
49
|
+
/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:4:in `<class:ActiverecordAnyOfTest>'
|
50
|
+
/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:3:in `<top (required)>'
|
51
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:10:in `require'
|
52
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
|
53
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:9:in `each'
|
54
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:9:in `block in <main>'
|
55
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:4:in `select'
|
56
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:4:in `<main>'
|
57
|
+
Unable to load post, underlying cause No such file to load -- post
|
58
|
+
|
59
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:317:in `rescue in depend_on'
|
60
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:312:in `depend_on'
|
61
|
+
/home/kik/.gem/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
|
62
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:767:in `try_to_load_dependency'
|
63
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:782:in `block in require_fixture_classes'
|
64
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:779:in `each'
|
65
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:779:in `require_fixture_classes'
|
66
|
+
/home/kik/.gem/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/fixtures.rb:762:in `fixtures'
|
67
|
+
/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:4:in `<class:ActiverecordAnyOfTest>'
|
68
|
+
/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:3:in `<top (required)>'
|
69
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:10:in `require'
|
70
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
|
71
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:9:in `each'
|
72
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:9:in `block in <main>'
|
73
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:4:in `select'
|
74
|
+
/home/kik/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb:4:in `<main>'
|
75
|
+
[1m[36m (1.4ms)[0m [1mbegin transaction[0m
|
76
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
77
|
+
SQLite3::SQLException: no such table: authors: DELETE FROM "authors"
|
78
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
79
|
+
[1m[35m (0.0ms)[0m begin transaction
|
80
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "authors"[0m
|
81
|
+
SQLite3::SQLException: no such table: authors: DELETE FROM "authors"
|
82
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
83
|
+
Connecting to database specified by database.yml
|
84
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
85
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
86
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
87
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
88
|
+
Connecting to database specified by database.yml
|
89
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
90
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
91
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "author_address_id", "author_address_extra_id", "organization_id", "owned_essay_id", "created_at", "updated_at") VALUES (1, 'David', 1, 2, 'No Such Agency', 'A Modest Proposal', '2013-06-17 17:38:18', '2013-06-17 17:38:18')[0m
|
92
|
+
SQLite3::SQLException: table authors has no column named author_address_id: INSERT INTO "authors" ("id", "name", "author_address_id", "author_address_extra_id", "organization_id", "owned_essay_id", "created_at", "updated_at") VALUES (1, 'David', 1, 2, 'No Such Agency', 'A Modest Proposal', '2013-06-17 17:38:18', '2013-06-17 17:38:18')
|
93
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
94
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
95
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "authors"
|
96
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "author_address_id", "author_address_extra_id", "organization_id", "owned_essay_id", "created_at", "updated_at") VALUES (1, 'David', 1, 2, 'No Such Agency', 'A Modest Proposal', '2013-06-17 17:38:18', '2013-06-17 17:38:18')[0m
|
97
|
+
SQLite3::SQLException: table authors has no column named author_address_id: INSERT INTO "authors" ("id", "name", "author_address_id", "author_address_extra_id", "organization_id", "owned_essay_id", "created_at", "updated_at") VALUES (1, 'David', 1, 2, 'No Such Agency', 'A Modest Proposal', '2013-06-17 17:38:18', '2013-06-17 17:38:18')
|
98
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
99
|
+
Connecting to database specified by database.yml
|
100
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
101
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
102
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-17 17:39:54', '2013-06-17 17:39:54')[0m
|
103
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-17 17:39:54', '2013-06-17 17:39:54')
|
104
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-17 17:39:54', '2013-06-17 17:39:54')[0m
|
105
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
106
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-17 17:39:54', '2013-06-17 17:39:54')[0m
|
107
|
+
SQLite3::SQLException: table posts has no column named author_id: INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-17 17:39:54', '2013-06-17 17:39:54')
|
108
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
109
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
110
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "authors"
|
111
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-17 17:39:54', '2013-06-17 17:39:54')[0m
|
112
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-17 17:39:54', '2013-06-17 17:39:54')
|
113
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-17 17:39:54', '2013-06-17 17:39:54')[0m
|
114
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
115
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-17 17:39:54', '2013-06-17 17:39:54')[0m
|
116
|
+
SQLite3::SQLException: table posts has no column named author_id: INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-17 17:39:54', '2013-06-17 17:39:54')
|
117
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
118
|
+
Connecting to database specified by database.yml
|
119
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
120
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
121
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-17 17:41:12', '2013-06-17 17:41:12')[0m
|
122
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-17 17:41:12', '2013-06-17 17:41:12')
|
123
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-17 17:41:12', '2013-06-17 17:41:12')[0m
|
124
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
125
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-17 17:41:12', '2013-06-17 17:41:12')[0m
|
126
|
+
SQLite3::SQLException: table posts has no column named author_id: INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-17 17:41:12', '2013-06-17 17:41:12')
|
127
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
128
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
129
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "authors"
|
130
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-17 17:41:12', '2013-06-17 17:41:12')[0m
|
131
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-17 17:41:12', '2013-06-17 17:41:12')
|
132
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-17 17:41:12', '2013-06-17 17:41:12')[0m
|
133
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
134
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-17 17:41:12', '2013-06-17 17:41:12')[0m
|
135
|
+
SQLite3::SQLException: table posts has no column named author_id: INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-17 17:41:12', '2013-06-17 17:41:12')
|
136
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
137
|
+
Connecting to database specified by database.yml
|
138
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
139
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
140
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-17 17:42:45', '2013-06-17 17:42:45')[0m
|
141
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-17 17:42:45', '2013-06-17 17:42:45')
|
142
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-17 17:42:45', '2013-06-17 17:42:45')[0m
|
143
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
144
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-17 17:42:45', '2013-06-17 17:42:45')[0m
|
145
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-06-17 17:42:45', '2013-06-17 17:42:45')
|
146
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-06-17 17:42:45', '2013-06-17 17:42:45')[0m
|
147
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-06-17 17:42:45', '2013-06-17 17:42:45')
|
148
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-06-17 17:42:45', '2013-06-17 17:42:45')[0m
|
149
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-06-17 17:42:45', '2013-06-17 17:42:45')
|
150
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-06-17 17:42:45', '2013-06-17 17:42:45')[0m
|
151
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-06-17 17:42:45', '2013-06-17 17:42:45')
|
152
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-06-17 17:42:45', '2013-06-17 17:42:45')[0m
|
153
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-06-17 17:42:45', '2013-06-17 17:42:45')
|
154
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-06-17 17:42:45', '2013-06-17 17:42:45')[0m
|
155
|
+
[1m[35m (293.6ms)[0m commit transaction
|
156
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
157
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
158
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
159
|
+
[1m[35mAuthor Load (0.6ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
160
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m
|
161
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
162
|
+
Connecting to database specified by database.yml
|
163
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
164
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
165
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-17 17:47:36', '2013-06-17 17:47:36')[0m
|
166
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-17 17:47:36', '2013-06-17 17:47:36')
|
167
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-17 17:47:36', '2013-06-17 17:47:36')[0m
|
168
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
169
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-17 17:47:36', '2013-06-17 17:47:36')[0m
|
170
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-06-17 17:47:36', '2013-06-17 17:47:36')
|
171
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-06-17 17:47:36', '2013-06-17 17:47:36')[0m
|
172
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-06-17 17:47:36', '2013-06-17 17:47:36')
|
173
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-06-17 17:47:36', '2013-06-17 17:47:36')[0m
|
174
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-06-17 17:47:36', '2013-06-17 17:47:36')
|
175
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-06-17 17:47:36', '2013-06-17 17:47:36')[0m
|
176
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-06-17 17:47:36', '2013-06-17 17:47:36')
|
177
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-06-17 17:47:36', '2013-06-17 17:47:36')[0m
|
178
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-06-17 17:47:36', '2013-06-17 17:47:36')
|
179
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-06-17 17:47:36', '2013-06-17 17:47:36')[0m
|
180
|
+
[1m[35m (266.4ms)[0m commit transaction
|
181
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
182
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
183
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
184
|
+
[1m[35mAuthor Load (0.7ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
185
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m
|
186
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
187
|
+
Connecting to database specified by database.yml
|
188
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
189
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
190
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-17 17:48:52', '2013-06-17 17:48:52')[0m
|
191
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-17 17:48:52', '2013-06-17 17:48:52')
|
192
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-17 17:48:52', '2013-06-17 17:48:52')[0m
|
193
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
194
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-17 17:48:52', '2013-06-17 17:48:52')[0m
|
195
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-06-17 17:48:52', '2013-06-17 17:48:52')
|
196
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-06-17 17:48:52', '2013-06-17 17:48:52')[0m
|
197
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-06-17 17:48:52', '2013-06-17 17:48:52')
|
198
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-06-17 17:48:52', '2013-06-17 17:48:52')[0m
|
199
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-06-17 17:48:52', '2013-06-17 17:48:52')
|
200
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-06-17 17:48:52', '2013-06-17 17:48:52')[0m
|
201
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-06-17 17:48:52', '2013-06-17 17:48:52')
|
202
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-06-17 17:48:52', '2013-06-17 17:48:52')[0m
|
203
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-06-17 17:48:52', '2013-06-17 17:48:52')
|
204
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-06-17 17:48:52', '2013-06-17 17:48:52')[0m
|
205
|
+
[1m[35m (268.9ms)[0m commit transaction
|
206
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209
|
+
[1m[35mAuthor Load (0.7ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
210
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m
|
211
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
212
|
+
Connecting to database specified by database.yml
|
213
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
214
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authors"
|
215
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-18 07:20:26', '2013-06-18 07:20:26')[0m
|
216
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-18 07:20:26', '2013-06-18 07:20:26')
|
217
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-18 07:20:26', '2013-06-18 07:20:26')[0m
|
218
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
219
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-18 07:20:26', '2013-06-18 07:20:26')[0m
|
220
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-06-18 07:20:26', '2013-06-18 07:20:26')
|
221
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-06-18 07:20:26', '2013-06-18 07:20:26')[0m
|
222
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-06-18 07:20:26', '2013-06-18 07:20:26')
|
223
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-06-18 07:20:26', '2013-06-18 07:20:26')[0m
|
224
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-06-18 07:20:26', '2013-06-18 07:20:26')
|
225
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-06-18 07:20:26', '2013-06-18 07:20:26')[0m
|
226
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-06-18 07:20:26', '2013-06-18 07:20:26')
|
227
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-06-18 07:20:26', '2013-06-18 07:20:26')[0m
|
228
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-06-18 07:20:26', '2013-06-18 07:20:26')
|
229
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-06-18 07:20:26', '2013-06-18 07:20:26')[0m
|
230
|
+
[1m[35m (271.9ms)[0m commit transaction
|
231
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
232
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
233
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
234
|
+
[1m[35mAuthor Load (3.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
235
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m
|
236
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
237
|
+
Connecting to database specified by database.yml
|
238
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
239
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
240
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-18 07:20:37', '2013-06-18 07:20:37')[0m
|
241
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-18 07:20:37', '2013-06-18 07:20:37')
|
242
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-18 07:20:37', '2013-06-18 07:20:37')[0m
|
243
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
244
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-18 07:20:37', '2013-06-18 07:20:37')[0m
|
245
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-06-18 07:20:37', '2013-06-18 07:20:37')
|
246
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-06-18 07:20:37', '2013-06-18 07:20:37')[0m
|
247
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-06-18 07:20:37', '2013-06-18 07:20:37')
|
248
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-06-18 07:20:37', '2013-06-18 07:20:37')[0m
|
249
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-06-18 07:20:37', '2013-06-18 07:20:37')
|
250
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-06-18 07:20:37', '2013-06-18 07:20:37')[0m
|
251
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-06-18 07:20:37', '2013-06-18 07:20:37')
|
252
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-06-18 07:20:37', '2013-06-18 07:20:37')[0m
|
253
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-06-18 07:20:37', '2013-06-18 07:20:37')
|
254
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-06-18 07:20:37', '2013-06-18 07:20:37')[0m
|
255
|
+
[1m[35m (259.9ms)[0m commit transaction
|
256
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
257
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
258
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
259
|
+
[1m[35mAuthor Load (0.8ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
260
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m
|
261
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
262
|
+
Connecting to database specified by database.yml
|
263
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
264
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
265
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-18 07:20:53', '2013-06-18 07:20:53')[0m
|
266
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-18 07:20:53', '2013-06-18 07:20:53')
|
267
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-18 07:20:53', '2013-06-18 07:20:53')[0m
|
268
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
269
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-18 07:20:53', '2013-06-18 07:20:53')[0m
|
270
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-06-18 07:20:53', '2013-06-18 07:20:53')
|
271
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-06-18 07:20:53', '2013-06-18 07:20:53')[0m
|
272
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-06-18 07:20:53', '2013-06-18 07:20:53')
|
273
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-06-18 07:20:53', '2013-06-18 07:20:53')[0m
|
274
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-06-18 07:20:53', '2013-06-18 07:20:53')
|
275
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-06-18 07:20:53', '2013-06-18 07:20:53')[0m
|
276
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-06-18 07:20:53', '2013-06-18 07:20:53')
|
277
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-06-18 07:20:53', '2013-06-18 07:20:53')[0m
|
278
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-06-18 07:20:53', '2013-06-18 07:20:53')
|
279
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-06-18 07:20:53', '2013-06-18 07:20:53')[0m
|
280
|
+
[1m[35m (245.6ms)[0m commit transaction
|
281
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
282
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
283
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
284
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
285
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m
|
286
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
287
|
+
Connecting to database specified by database.yml
|
288
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
289
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
290
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-18 07:23:38', '2013-06-18 07:23:38')[0m
|
291
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-18 07:23:38', '2013-06-18 07:23:38')
|
292
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-18 07:23:38', '2013-06-18 07:23:38')[0m
|
293
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
294
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-18 07:23:38', '2013-06-18 07:23:38')[0m
|
295
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-06-18 07:23:38', '2013-06-18 07:23:38')
|
296
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-06-18 07:23:38', '2013-06-18 07:23:38')[0m
|
297
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-06-18 07:23:38', '2013-06-18 07:23:38')
|
298
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-06-18 07:23:38', '2013-06-18 07:23:38')[0m
|
299
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-06-18 07:23:38', '2013-06-18 07:23:38')
|
300
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-06-18 07:23:38', '2013-06-18 07:23:38')[0m
|
301
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-06-18 07:23:38', '2013-06-18 07:23:38')
|
302
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-06-18 07:23:38', '2013-06-18 07:23:38')[0m
|
303
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-06-18 07:23:38', '2013-06-18 07:23:38')
|
304
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-06-18 07:23:38', '2013-06-18 07:23:38')[0m
|
305
|
+
[1m[35m (281.8ms)[0m commit transaction
|
306
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
307
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors"
|
308
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" [0m
|
309
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
310
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
311
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
312
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m
|
313
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
314
|
+
Connecting to database specified by database.yml
|
315
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
316
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
317
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-18 07:26:32', '2013-06-18 07:26:32')[0m
|
318
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-18 07:26:32', '2013-06-18 07:26:32')
|
319
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-18 07:26:32', '2013-06-18 07:26:32')[0m
|
320
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
321
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-18 07:26:32', '2013-06-18 07:26:32')[0m
|
322
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-06-18 07:26:32', '2013-06-18 07:26:32')
|
323
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-06-18 07:26:32', '2013-06-18 07:26:32')[0m
|
324
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-06-18 07:26:32', '2013-06-18 07:26:32')
|
325
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-06-18 07:26:32', '2013-06-18 07:26:32')[0m
|
326
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-06-18 07:26:32', '2013-06-18 07:26:32')
|
327
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-06-18 07:26:32', '2013-06-18 07:26:32')[0m
|
328
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-06-18 07:26:32', '2013-06-18 07:26:32')
|
329
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-06-18 07:26:32', '2013-06-18 07:26:32')[0m
|
330
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-06-18 07:26:32', '2013-06-18 07:26:32')
|
331
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-06-18 07:26:32', '2013-06-18 07:26:32')[0m
|
332
|
+
[1m[35m (304.6ms)[0m commit transaction
|
333
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
334
|
+
[1m[35mAuthor Load (0.8ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
335
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
336
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
337
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))[0m
|
338
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
339
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
340
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
341
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m
|
342
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
343
|
+
Connecting to database specified by database.yml
|
344
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
345
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
346
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-06-18 07:28:05', '2013-06-18 07:28:05')[0m
|
347
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-06-18 07:28:05', '2013-06-18 07:28:05')
|
348
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-06-18 07:28:05', '2013-06-18 07:28:05')[0m
|
349
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
350
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-06-18 07:28:06', '2013-06-18 07:28:06')[0m
|
351
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-06-18 07:28:06', '2013-06-18 07:28:06')
|
352
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-06-18 07:28:06', '2013-06-18 07:28:06')[0m
|
353
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-06-18 07:28:06', '2013-06-18 07:28:06')
|
354
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-06-18 07:28:06', '2013-06-18 07:28:06')[0m
|
355
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-06-18 07:28:06', '2013-06-18 07:28:06')
|
356
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-06-18 07:28:06', '2013-06-18 07:28:06')[0m
|
357
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-06-18 07:28:06', '2013-06-18 07:28:06')
|
358
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-06-18 07:28:06', '2013-06-18 07:28:06')[0m
|
359
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-06-18 07:28:06', '2013-06-18 07:28:06')
|
360
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-06-18 07:28:06', '2013-06-18 07:28:06')[0m
|
361
|
+
[1m[35m (278.2ms)[0m commit transaction
|
362
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
363
|
+
[1m[35mAuthor Load (0.8ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
364
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
365
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
366
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))[0m
|
367
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
|
368
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
369
|
+
[1m[35m (0.0ms)[0m begin transaction
|
370
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1[0m
|
371
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
|
372
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|