activerecord_any_of 1.0.2 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +48 -13
- data/Rakefile +9 -0
- data/lib/activerecord_any_of/version.rb +1 -1
- data/lib/activerecord_any_of.rb +59 -36
- data/test/activerecord_any_of_test.rb +60 -17
- data/test/{dummy → dummy_rails3}/README.rdoc +0 -0
- data/test/{dummy → dummy_rails3}/Rakefile +0 -0
- data/test/{dummy → dummy_rails3}/app/assets/javascripts/application.js +0 -0
- data/test/{dummy → dummy_rails3}/app/assets/stylesheets/application.css +0 -0
- data/test/{dummy → dummy_rails3}/app/controllers/application_controller.rb +0 -0
- data/test/{dummy → dummy_rails3}/app/helpers/application_helper.rb +0 -0
- data/test/{dummy → dummy_rails3}/app/models/author.rb +0 -0
- data/test/{dummy → dummy_rails3}/app/models/post.rb +0 -0
- data/test/{dummy → dummy_rails3}/app/models/special_post.rb +0 -0
- data/test/{dummy → dummy_rails3}/app/models/sti_post.rb +0 -0
- data/test/{dummy → dummy_rails3}/app/views/layouts/application.html.erb +0 -0
- data/test/{dummy → dummy_rails3}/config/application.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/boot.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/database.yml +0 -0
- data/test/{dummy → dummy_rails3}/config/environment.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/environments/development.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/environments/production.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/environments/test.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/initializers/backtrace_silencers.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/initializers/inflections.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/initializers/mime_types.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/initializers/secret_token.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/initializers/session_store.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/initializers/wrap_parameters.rb +0 -0
- data/test/{dummy → dummy_rails3}/config/locales/en.yml +0 -0
- data/test/{dummy → dummy_rails3}/config/routes.rb +0 -0
- data/test/{dummy → dummy_rails3}/config.ru +0 -0
- data/test/{dummy → dummy_rails3}/db/development.sqlite3 +0 -0
- data/test/{dummy → dummy_rails3}/db/migrate/20130617172335_create_authors.rb +0 -0
- data/test/{dummy → dummy_rails3}/db/migrate/20130617173313_create_posts.rb +0 -0
- data/test/{dummy → dummy_rails3}/db/schema.rb +0 -0
- data/test/dummy_rails3/db/test.sqlite3 +0 -0
- data/test/{dummy → dummy_rails3}/log/development.log +10 -0
- data/test/{dummy → dummy_rails3}/log/test.log +288 -0
- data/test/{dummy → dummy_rails3}/public/404.html +0 -0
- data/test/{dummy → dummy_rails3}/public/422.html +0 -0
- data/test/{dummy → dummy_rails3}/public/500.html +0 -0
- data/test/{dummy → dummy_rails3}/public/favicon.ico +0 -0
- data/test/{dummy → dummy_rails3}/script/rails +0 -0
- data/test/{dummy → dummy_rails3}/test/fixtures/authors.yml +0 -0
- data/test/{dummy → dummy_rails3}/test/fixtures/posts.yml +0 -0
- data/test/{dummy → dummy_rails3}/test/unit/author_test.rb +0 -0
- data/test/{dummy → dummy_rails3}/test/unit/post_test.rb +0 -0
- data/test/dummy_rails4/README.rdoc +28 -0
- data/test/dummy_rails4/Rakefile +6 -0
- data/test/dummy_rails4/app/assets/javascripts/application.js +13 -0
- data/test/dummy_rails4/app/assets/stylesheets/application.css +13 -0
- data/test/dummy_rails4/app/controllers/application_controller.rb +5 -0
- data/test/dummy_rails4/app/helpers/application_helper.rb +2 -0
- data/test/dummy_rails4/app/models/author.rb +3 -0
- data/test/dummy_rails4/app/models/post.rb +3 -0
- data/test/dummy_rails4/app/models/special_post.rb +2 -0
- data/test/dummy_rails4/app/models/sti_post.rb +2 -0
- data/test/dummy_rails4/app/views/layouts/application.html.erb +14 -0
- data/test/dummy_rails4/bin/bundle +3 -0
- data/test/dummy_rails4/bin/rails +4 -0
- data/test/dummy_rails4/bin/rake +4 -0
- data/test/dummy_rails4/config/application.rb +23 -0
- data/test/dummy_rails4/config/boot.rb +5 -0
- data/test/dummy_rails4/config/database.yml +25 -0
- data/test/dummy_rails4/config/environment.rb +5 -0
- data/test/dummy_rails4/config/environments/development.rb +29 -0
- data/test/dummy_rails4/config/environments/production.rb +80 -0
- data/test/dummy_rails4/config/environments/test.rb +36 -0
- data/test/dummy_rails4/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy_rails4/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy_rails4/config/initializers/inflections.rb +16 -0
- data/test/dummy_rails4/config/initializers/mime_types.rb +5 -0
- data/test/dummy_rails4/config/initializers/secret_token.rb +12 -0
- data/test/dummy_rails4/config/initializers/session_store.rb +3 -0
- data/test/dummy_rails4/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy_rails4/config/locales/en.yml +23 -0
- data/test/dummy_rails4/config/routes.rb +56 -0
- data/test/dummy_rails4/config.ru +4 -0
- data/test/dummy_rails4/db/development.sqlite3 +0 -0
- data/test/dummy_rails4/db/migrate/20130617172335_create_authors.rb +9 -0
- data/test/dummy_rails4/db/migrate/20130617173313_create_posts.rb +12 -0
- data/test/dummy_rails4/db/schema.rb +31 -0
- data/test/{dummy → dummy_rails4}/db/test.sqlite3 +0 -0
- data/test/dummy_rails4/log/development.log +21 -0
- data/test/dummy_rails4/log/test.log +437 -0
- data/test/dummy_rails4/public/404.html +58 -0
- data/test/dummy_rails4/public/422.html +58 -0
- data/test/dummy_rails4/public/500.html +57 -0
- data/test/dummy_rails4/public/favicon.ico +0 -0
- data/test/dummy_rails4/test/fixtures/authors.yml +7 -0
- data/test/dummy_rails4/test/fixtures/posts.yml +13 -0
- data/test/dummy_rails4/test/unit/author_test.rb +7 -0
- data/test/dummy_rails4/test/unit/post_test.rb +7 -0
- data/test/test_helper.rb +4 -4
- metadata +180 -88
@@ -0,0 +1,437 @@
|
|
1
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
3
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)[0m
|
4
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)
|
5
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "posts"[0m
|
6
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
7
|
+
SQLite3::SQLException: table posts has no column named user_id: INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
8
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
9
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "authors"[0m
|
11
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
12
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)[0m
|
13
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
14
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)[0m
|
15
|
+
SQLite3::SQLException: table posts has no column named user_id: INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
16
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
17
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
19
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)[0m
|
20
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)
|
21
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "posts"[0m
|
22
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
23
|
+
SQLite3::SQLException: table posts has no column named user_id: INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
24
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
25
|
+
[1m[35m (0.0ms)[0m begin transaction
|
26
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "authors"[0m
|
27
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
28
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)[0m
|
29
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
30
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)[0m
|
31
|
+
SQLite3::SQLException: table posts has no column named user_id: INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
32
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
35
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)[0m
|
36
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)
|
37
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "posts"[0m
|
38
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
39
|
+
SQLite3::SQLException: table posts has no column named user_id: INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
40
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
41
|
+
[1m[35m (0.0ms)[0m begin transaction
|
42
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "authors"[0m
|
43
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
44
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)[0m
|
45
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
46
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)[0m
|
47
|
+
SQLite3::SQLException: table posts has no column named user_id: INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
48
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
49
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
50
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
51
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)[0m
|
52
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)
|
53
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "posts"[0m
|
54
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
55
|
+
SQLite3::SQLException: table posts has no column named user_id: INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
56
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57
|
+
[1m[35m (0.0ms)[0m begin transaction
|
58
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "authors"[0m
|
59
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
60
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)[0m
|
61
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
62
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)[0m
|
63
|
+
SQLite3::SQLException: table posts has no column named user_id: INSERT INTO "posts" ("title", "body", "user_id", "type", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', NULL, NULL, '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
|
64
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
67
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-31 14:22:09', '2013-08-31 14:22:09')[0m
|
68
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-31 14:22:09', '2013-08-31 14:22:09')
|
69
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-31 14:22:09', '2013-08-31 14:22:09')[0m
|
70
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
71
|
+
[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-08-31 14:22:09', '2013-08-31 14:22:09')[0m
|
72
|
+
[1m[35mFixture Insert (0.1ms)[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-08-31 14:22:09', '2013-08-31 14:22:09')
|
73
|
+
[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-08-31 14:22:09', '2013-08-31 14:22:09')[0m
|
74
|
+
[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-08-31 14:22:09', '2013-08-31 14:22:09')
|
75
|
+
[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-08-31 14:22:09', '2013-08-31 14:22:09')[0m
|
76
|
+
[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-08-31 14:22:09', '2013-08-31 14:22:09')
|
77
|
+
[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-08-31 14:22:09', '2013-08-31 14:22:09')[0m
|
78
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-31 14:22:09', '2013-08-31 14:22:09')
|
79
|
+
[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-08-31 14:22:09', '2013-08-31 14:22:09')[0m
|
80
|
+
[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-08-31 14:22:09', '2013-08-31 14:22:09')
|
81
|
+
[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-08-31 14:22:09', '2013-08-31 14:22:09')[0m
|
82
|
+
[1m[35m (893.4ms)[0m commit transaction
|
83
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84
|
+
------------------------------------------------------------------------
|
85
|
+
ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
|
86
|
+
------------------------------------------------------------------------
|
87
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
88
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90
|
+
----------------------------------------------------------------------------
|
91
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
|
92
|
+
----------------------------------------------------------------------------
|
93
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
94
|
+
[1m[35m (0.1ms)[0m begin transaction
|
95
|
+
-----------------------------------------------------------------------------
|
96
|
+
ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
|
97
|
+
-----------------------------------------------------------------------------
|
98
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
99
|
+
[1m[35m (0.0ms)[0m begin transaction
|
100
|
+
-----------------------------------------------------------------------------
|
101
|
+
ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
|
102
|
+
-----------------------------------------------------------------------------
|
103
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
104
|
+
[1m[35mSQL (0.1ms)[0m SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
105
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107
|
+
-------------------------------------------------------------
|
108
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions
|
109
|
+
-------------------------------------------------------------
|
110
|
+
[1m[36mAuthor Load (0.2ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
111
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
|
112
|
+
[1m[36mAuthor Load (0.2ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))[0m
|
113
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
|
114
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))[0m
|
115
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
116
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
117
|
+
----------------------------------------------------------------------------
|
118
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
|
119
|
+
----------------------------------------------------------------------------
|
120
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
|
121
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m [["author_id", 1]]
|
122
|
+
[1m[35m (16.1ms)[0m rollback transaction
|
123
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
124
|
+
----------------------------------------------------------------------
|
125
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
|
126
|
+
----------------------------------------------------------------------
|
127
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
|
128
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
129
|
+
[1m[35m (0.0ms)[0m begin transaction
|
130
|
+
-------------------------------------------------------------------------------------
|
131
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
|
132
|
+
-------------------------------------------------------------------------------------
|
133
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1[0m
|
134
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))) [["author_id", 1]]
|
135
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
136
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
137
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
138
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-31 14:22:18', '2013-08-31 14:22:18')[0m
|
139
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-31 14:22:18', '2013-08-31 14:22:18')
|
140
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-31 14:22:18', '2013-08-31 14:22:18')[0m
|
141
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
142
|
+
[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-08-31 14:22:18', '2013-08-31 14:22:18')[0m
|
143
|
+
[1m[35mFixture Insert (0.1ms)[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-08-31 14:22:18', '2013-08-31 14:22:18')
|
144
|
+
[1m[36mFixture Insert (0.1ms)[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-08-31 14:22:18', '2013-08-31 14:22:18')[0m
|
145
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-31 14:22:18', '2013-08-31 14:22:18')
|
146
|
+
[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-08-31 14:22:18', '2013-08-31 14:22:18')[0m
|
147
|
+
[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-08-31 14:22:18', '2013-08-31 14:22:18')
|
148
|
+
[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-08-31 14:22:18', '2013-08-31 14:22:18')[0m
|
149
|
+
[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-08-31 14:22:18', '2013-08-31 14:22:18')
|
150
|
+
[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-08-31 14:22:18', '2013-08-31 14:22:18')[0m
|
151
|
+
[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-08-31 14:22:18', '2013-08-31 14:22:18')
|
152
|
+
[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-08-31 14:22:18', '2013-08-31 14:22:18')[0m
|
153
|
+
[1m[35m (293.0ms)[0m commit transaction
|
154
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
155
|
+
------------------------------------------------------------------------
|
156
|
+
ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
|
157
|
+
------------------------------------------------------------------------
|
158
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
159
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
160
|
+
[1m[35m (0.1ms)[0m begin transaction
|
161
|
+
----------------------------------------------------------------------------
|
162
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
|
163
|
+
----------------------------------------------------------------------------
|
164
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
165
|
+
[1m[35m (0.0ms)[0m begin transaction
|
166
|
+
-----------------------------------------------------------------------------
|
167
|
+
ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
|
168
|
+
-----------------------------------------------------------------------------
|
169
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
170
|
+
[1m[35m (0.0ms)[0m begin transaction
|
171
|
+
-----------------------------------------------------------------------------
|
172
|
+
ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
|
173
|
+
-----------------------------------------------------------------------------
|
174
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
175
|
+
[1m[35mSQL (0.1ms)[0m SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
176
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
177
|
+
[1m[35m (0.1ms)[0m begin transaction
|
178
|
+
-------------------------------------------------------------
|
179
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions
|
180
|
+
-------------------------------------------------------------
|
181
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
182
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
|
183
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))[0m
|
184
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
|
185
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))[0m
|
186
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
187
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
188
|
+
----------------------------------------------------------------------------
|
189
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
|
190
|
+
----------------------------------------------------------------------------
|
191
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
|
192
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m [["author_id", 1]]
|
193
|
+
[1m[35m (16.4ms)[0m rollback transaction
|
194
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
195
|
+
----------------------------------------------------------------------
|
196
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
|
197
|
+
----------------------------------------------------------------------
|
198
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
|
199
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
200
|
+
[1m[35m (0.0ms)[0m begin transaction
|
201
|
+
-------------------------------------------------------------------------------------
|
202
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
|
203
|
+
-------------------------------------------------------------------------------------
|
204
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1[0m
|
205
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))) [["author_id", 1]]
|
206
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
207
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
208
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
209
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-31 15:35:47', '2013-08-31 15:35:47')[0m
|
210
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-31 15:35:47', '2013-08-31 15:35:47')
|
211
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-31 15:35:47', '2013-08-31 15:35:47')[0m
|
212
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
213
|
+
[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-08-31 15:35:47', '2013-08-31 15:35:47')[0m
|
214
|
+
[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-08-31 15:35:47', '2013-08-31 15:35:47')
|
215
|
+
[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-08-31 15:35:47', '2013-08-31 15:35:47')[0m
|
216
|
+
[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-08-31 15:35:47', '2013-08-31 15:35:47')
|
217
|
+
[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-08-31 15:35:47', '2013-08-31 15:35:47')[0m
|
218
|
+
[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-08-31 15:35:47', '2013-08-31 15:35:47')
|
219
|
+
[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-08-31 15:35:47', '2013-08-31 15:35:47')[0m
|
220
|
+
[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-08-31 15:35:47', '2013-08-31 15:35:47')
|
221
|
+
[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-08-31 15:35:47', '2013-08-31 15:35:47')[0m
|
222
|
+
[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-08-31 15:35:47', '2013-08-31 15:35:47')
|
223
|
+
[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-08-31 15:35:47', '2013-08-31 15:35:47')[0m
|
224
|
+
[1m[35m (421.5ms)[0m commit transaction
|
225
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
226
|
+
------------------------------------------------------------------------
|
227
|
+
ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
|
228
|
+
------------------------------------------------------------------------
|
229
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
230
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
231
|
+
[1m[35m (0.0ms)[0m begin transaction
|
232
|
+
----------------------------------------------------------------------------
|
233
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
|
234
|
+
----------------------------------------------------------------------------
|
235
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
236
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237
|
+
-----------------------------------------------------------------------------
|
238
|
+
ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
|
239
|
+
-----------------------------------------------------------------------------
|
240
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
241
|
+
[1m[35m (0.0ms)[0m begin transaction
|
242
|
+
-----------------------------------------------------------------------------
|
243
|
+
ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
|
244
|
+
-----------------------------------------------------------------------------
|
245
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
246
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
247
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
248
|
+
-----------------------------------------------------------------------------
|
249
|
+
ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
|
250
|
+
-----------------------------------------------------------------------------
|
251
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
252
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
253
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
254
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
255
|
+
-------------------------------------------------------------
|
256
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions
|
257
|
+
-------------------------------------------------------------
|
258
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
259
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
260
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
261
|
+
[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
|
262
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
|
263
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
264
|
+
[1m[35m (0.0ms)[0m begin transaction
|
265
|
+
----------------------------------------------------------------------------
|
266
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
|
267
|
+
----------------------------------------------------------------------------
|
268
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1[0m
|
269
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')) [["author_id", 1]]
|
270
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
271
|
+
[1m[35m (0.0ms)[0m begin transaction
|
272
|
+
----------------------------------------------------------------------
|
273
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
|
274
|
+
----------------------------------------------------------------------
|
275
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))[0m
|
276
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
277
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
278
|
+
-------------------------------------------------------------------------------------
|
279
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
|
280
|
+
-------------------------------------------------------------------------------------
|
281
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
|
282
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m [["author_id", 1]]
|
283
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
284
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
285
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
286
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-31 15:36:33', '2013-08-31 15:36:33')[0m
|
287
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-31 15:36:33', '2013-08-31 15:36:33')
|
288
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-31 15:36:33', '2013-08-31 15:36:33')[0m
|
289
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
290
|
+
[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-08-31 15:36:33', '2013-08-31 15:36:33')[0m
|
291
|
+
[1m[35mFixture Insert (0.1ms)[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-08-31 15:36:33', '2013-08-31 15:36:33')
|
292
|
+
[1m[36mFixture Insert (0.1ms)[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-08-31 15:36:33', '2013-08-31 15:36:33')[0m
|
293
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-31 15:36:33', '2013-08-31 15:36:33')
|
294
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-31 15:36:33', '2013-08-31 15:36:33')[0m
|
295
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-31 15:36:33', '2013-08-31 15:36:33')
|
296
|
+
[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-08-31 15:36:33', '2013-08-31 15:36:33')[0m
|
297
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-31 15:36:33', '2013-08-31 15:36:33')
|
298
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-31 15:36:33', '2013-08-31 15:36:33')[0m
|
299
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-31 15:36:33', '2013-08-31 15:36:33')
|
300
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-31 15:36:33', '2013-08-31 15:36:33')[0m
|
301
|
+
[1m[35m (302.3ms)[0m commit transaction
|
302
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
303
|
+
------------------------------------------------------------------------
|
304
|
+
ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
|
305
|
+
------------------------------------------------------------------------
|
306
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
307
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
308
|
+
[1m[35m (0.1ms)[0m begin transaction
|
309
|
+
----------------------------------------------------------------------------
|
310
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
|
311
|
+
----------------------------------------------------------------------------
|
312
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
313
|
+
[1m[35m (0.0ms)[0m begin transaction
|
314
|
+
-----------------------------------------------------------------------------
|
315
|
+
ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
|
316
|
+
-----------------------------------------------------------------------------
|
317
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
318
|
+
[1m[35m (0.0ms)[0m begin transaction
|
319
|
+
-----------------------------------------------------------------------------
|
320
|
+
ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
|
321
|
+
-----------------------------------------------------------------------------
|
322
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
323
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
324
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
325
|
+
-----------------------------------------------------------------------------
|
326
|
+
ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
|
327
|
+
-----------------------------------------------------------------------------
|
328
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
329
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
330
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
331
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
332
|
+
-------------------------------------------------------------
|
333
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions
|
334
|
+
-------------------------------------------------------------
|
335
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
336
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
337
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
338
|
+
[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
|
339
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
|
340
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
341
|
+
[1m[35m (0.0ms)[0m begin transaction
|
342
|
+
----------------------------------------------------------------------------
|
343
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
|
344
|
+
----------------------------------------------------------------------------
|
345
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1[0m
|
346
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')) [["author_id", 1]]
|
347
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
348
|
+
[1m[35m (0.0ms)[0m begin transaction
|
349
|
+
----------------------------------------------------------------------
|
350
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
|
351
|
+
----------------------------------------------------------------------
|
352
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))[0m
|
353
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
354
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
355
|
+
-------------------------------------------------------------------------------------
|
356
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
|
357
|
+
-------------------------------------------------------------------------------------
|
358
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
|
359
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m [["author_id", 1]]
|
360
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
361
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
362
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
363
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-31 15:36:46', '2013-08-31 15:36:46')[0m
|
364
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-31 15:36:46', '2013-08-31 15:36:46')
|
365
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-31 15:36:46', '2013-08-31 15:36:46')[0m
|
366
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
367
|
+
[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-08-31 15:36:46', '2013-08-31 15:36:46')[0m
|
368
|
+
[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-08-31 15:36:46', '2013-08-31 15:36:46')
|
369
|
+
[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-08-31 15:36:46', '2013-08-31 15:36:46')[0m
|
370
|
+
[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-08-31 15:36:46', '2013-08-31 15:36:46')
|
371
|
+
[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-08-31 15:36:46', '2013-08-31 15:36:46')[0m
|
372
|
+
[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-08-31 15:36:46', '2013-08-31 15:36:46')
|
373
|
+
[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-08-31 15:36:46', '2013-08-31 15:36:46')[0m
|
374
|
+
[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-08-31 15:36:46', '2013-08-31 15:36:46')
|
375
|
+
[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-08-31 15:36:46', '2013-08-31 15:36:46')[0m
|
376
|
+
[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-08-31 15:36:46', '2013-08-31 15:36:46')
|
377
|
+
[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-08-31 15:36:46', '2013-08-31 15:36:46')[0m
|
378
|
+
[1m[35m (280.7ms)[0m commit transaction
|
379
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
380
|
+
------------------------------------------------------------------------
|
381
|
+
ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
|
382
|
+
------------------------------------------------------------------------
|
383
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
384
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
385
|
+
[1m[35m (0.0ms)[0m begin transaction
|
386
|
+
----------------------------------------------------------------------------
|
387
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
|
388
|
+
----------------------------------------------------------------------------
|
389
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
390
|
+
[1m[35m (0.0ms)[0m begin transaction
|
391
|
+
-----------------------------------------------------------------------------
|
392
|
+
ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
|
393
|
+
-----------------------------------------------------------------------------
|
394
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
395
|
+
[1m[35m (0.0ms)[0m begin transaction
|
396
|
+
-----------------------------------------------------------------------------
|
397
|
+
ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
|
398
|
+
-----------------------------------------------------------------------------
|
399
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
400
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
401
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
402
|
+
-----------------------------------------------------------------------------
|
403
|
+
ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
|
404
|
+
-----------------------------------------------------------------------------
|
405
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
406
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
407
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
408
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
409
|
+
-------------------------------------------------------------
|
410
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions
|
411
|
+
-------------------------------------------------------------
|
412
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
413
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
414
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
415
|
+
[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
|
416
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
|
417
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
418
|
+
[1m[35m (0.0ms)[0m begin transaction
|
419
|
+
----------------------------------------------------------------------------
|
420
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
|
421
|
+
----------------------------------------------------------------------------
|
422
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1[0m
|
423
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')) [["author_id", 1]]
|
424
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
425
|
+
[1m[35m (0.0ms)[0m begin transaction
|
426
|
+
----------------------------------------------------------------------
|
427
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
|
428
|
+
----------------------------------------------------------------------
|
429
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))[0m
|
430
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
431
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
432
|
+
-------------------------------------------------------------------------------------
|
433
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
|
434
|
+
-------------------------------------------------------------------------------------
|
435
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
|
436
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m [["author_id", 1]]
|
437
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/404.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
54
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|