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.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +48 -13
  3. data/Rakefile +9 -0
  4. data/lib/activerecord_any_of/version.rb +1 -1
  5. data/lib/activerecord_any_of.rb +59 -36
  6. data/test/activerecord_any_of_test.rb +60 -17
  7. data/test/{dummy → dummy_rails3}/README.rdoc +0 -0
  8. data/test/{dummy → dummy_rails3}/Rakefile +0 -0
  9. data/test/{dummy → dummy_rails3}/app/assets/javascripts/application.js +0 -0
  10. data/test/{dummy → dummy_rails3}/app/assets/stylesheets/application.css +0 -0
  11. data/test/{dummy → dummy_rails3}/app/controllers/application_controller.rb +0 -0
  12. data/test/{dummy → dummy_rails3}/app/helpers/application_helper.rb +0 -0
  13. data/test/{dummy → dummy_rails3}/app/models/author.rb +0 -0
  14. data/test/{dummy → dummy_rails3}/app/models/post.rb +0 -0
  15. data/test/{dummy → dummy_rails3}/app/models/special_post.rb +0 -0
  16. data/test/{dummy → dummy_rails3}/app/models/sti_post.rb +0 -0
  17. data/test/{dummy → dummy_rails3}/app/views/layouts/application.html.erb +0 -0
  18. data/test/{dummy → dummy_rails3}/config/application.rb +0 -0
  19. data/test/{dummy → dummy_rails3}/config/boot.rb +0 -0
  20. data/test/{dummy → dummy_rails3}/config/database.yml +0 -0
  21. data/test/{dummy → dummy_rails3}/config/environment.rb +0 -0
  22. data/test/{dummy → dummy_rails3}/config/environments/development.rb +0 -0
  23. data/test/{dummy → dummy_rails3}/config/environments/production.rb +0 -0
  24. data/test/{dummy → dummy_rails3}/config/environments/test.rb +0 -0
  25. data/test/{dummy → dummy_rails3}/config/initializers/backtrace_silencers.rb +0 -0
  26. data/test/{dummy → dummy_rails3}/config/initializers/inflections.rb +0 -0
  27. data/test/{dummy → dummy_rails3}/config/initializers/mime_types.rb +0 -0
  28. data/test/{dummy → dummy_rails3}/config/initializers/secret_token.rb +0 -0
  29. data/test/{dummy → dummy_rails3}/config/initializers/session_store.rb +0 -0
  30. data/test/{dummy → dummy_rails3}/config/initializers/wrap_parameters.rb +0 -0
  31. data/test/{dummy → dummy_rails3}/config/locales/en.yml +0 -0
  32. data/test/{dummy → dummy_rails3}/config/routes.rb +0 -0
  33. data/test/{dummy → dummy_rails3}/config.ru +0 -0
  34. data/test/{dummy → dummy_rails3}/db/development.sqlite3 +0 -0
  35. data/test/{dummy → dummy_rails3}/db/migrate/20130617172335_create_authors.rb +0 -0
  36. data/test/{dummy → dummy_rails3}/db/migrate/20130617173313_create_posts.rb +0 -0
  37. data/test/{dummy → dummy_rails3}/db/schema.rb +0 -0
  38. data/test/dummy_rails3/db/test.sqlite3 +0 -0
  39. data/test/{dummy → dummy_rails3}/log/development.log +10 -0
  40. data/test/{dummy → dummy_rails3}/log/test.log +288 -0
  41. data/test/{dummy → dummy_rails3}/public/404.html +0 -0
  42. data/test/{dummy → dummy_rails3}/public/422.html +0 -0
  43. data/test/{dummy → dummy_rails3}/public/500.html +0 -0
  44. data/test/{dummy → dummy_rails3}/public/favicon.ico +0 -0
  45. data/test/{dummy → dummy_rails3}/script/rails +0 -0
  46. data/test/{dummy → dummy_rails3}/test/fixtures/authors.yml +0 -0
  47. data/test/{dummy → dummy_rails3}/test/fixtures/posts.yml +0 -0
  48. data/test/{dummy → dummy_rails3}/test/unit/author_test.rb +0 -0
  49. data/test/{dummy → dummy_rails3}/test/unit/post_test.rb +0 -0
  50. data/test/dummy_rails4/README.rdoc +28 -0
  51. data/test/dummy_rails4/Rakefile +6 -0
  52. data/test/dummy_rails4/app/assets/javascripts/application.js +13 -0
  53. data/test/dummy_rails4/app/assets/stylesheets/application.css +13 -0
  54. data/test/dummy_rails4/app/controllers/application_controller.rb +5 -0
  55. data/test/dummy_rails4/app/helpers/application_helper.rb +2 -0
  56. data/test/dummy_rails4/app/models/author.rb +3 -0
  57. data/test/dummy_rails4/app/models/post.rb +3 -0
  58. data/test/dummy_rails4/app/models/special_post.rb +2 -0
  59. data/test/dummy_rails4/app/models/sti_post.rb +2 -0
  60. data/test/dummy_rails4/app/views/layouts/application.html.erb +14 -0
  61. data/test/dummy_rails4/bin/bundle +3 -0
  62. data/test/dummy_rails4/bin/rails +4 -0
  63. data/test/dummy_rails4/bin/rake +4 -0
  64. data/test/dummy_rails4/config/application.rb +23 -0
  65. data/test/dummy_rails4/config/boot.rb +5 -0
  66. data/test/dummy_rails4/config/database.yml +25 -0
  67. data/test/dummy_rails4/config/environment.rb +5 -0
  68. data/test/dummy_rails4/config/environments/development.rb +29 -0
  69. data/test/dummy_rails4/config/environments/production.rb +80 -0
  70. data/test/dummy_rails4/config/environments/test.rb +36 -0
  71. data/test/dummy_rails4/config/initializers/backtrace_silencers.rb +7 -0
  72. data/test/dummy_rails4/config/initializers/filter_parameter_logging.rb +4 -0
  73. data/test/dummy_rails4/config/initializers/inflections.rb +16 -0
  74. data/test/dummy_rails4/config/initializers/mime_types.rb +5 -0
  75. data/test/dummy_rails4/config/initializers/secret_token.rb +12 -0
  76. data/test/dummy_rails4/config/initializers/session_store.rb +3 -0
  77. data/test/dummy_rails4/config/initializers/wrap_parameters.rb +14 -0
  78. data/test/dummy_rails4/config/locales/en.yml +23 -0
  79. data/test/dummy_rails4/config/routes.rb +56 -0
  80. data/test/dummy_rails4/config.ru +4 -0
  81. data/test/dummy_rails4/db/development.sqlite3 +0 -0
  82. data/test/dummy_rails4/db/migrate/20130617172335_create_authors.rb +9 -0
  83. data/test/dummy_rails4/db/migrate/20130617173313_create_posts.rb +12 -0
  84. data/test/dummy_rails4/db/schema.rb +31 -0
  85. data/test/{dummy → dummy_rails4}/db/test.sqlite3 +0 -0
  86. data/test/dummy_rails4/log/development.log +21 -0
  87. data/test/dummy_rails4/log/test.log +437 -0
  88. data/test/dummy_rails4/public/404.html +58 -0
  89. data/test/dummy_rails4/public/422.html +58 -0
  90. data/test/dummy_rails4/public/500.html +57 -0
  91. data/test/dummy_rails4/public/favicon.ico +0 -0
  92. data/test/dummy_rails4/test/fixtures/authors.yml +7 -0
  93. data/test/dummy_rails4/test/fixtures/posts.yml +13 -0
  94. data/test/dummy_rails4/test/unit/author_test.rb +7 -0
  95. data/test/dummy_rails4/test/unit/post_test.rb +7 -0
  96. data/test/test_helper.rb +4 -4
  97. metadata +180 -88
@@ -0,0 +1,437 @@
1
+  (0.3ms) begin transaction
2
+ Fixture Delete (0.1ms) DELETE FROM "authors"
3
+ Fixture Insert (0.2ms) INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
4
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "posts"
6
+ Fixture Insert (0.2ms) 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
+  (0.2ms) rollback transaction
9
+  (0.1ms) begin transaction
10
+ Fixture Delete (0.1ms) DELETE FROM "authors"
11
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)
13
+ Fixture Delete (0.0ms) DELETE FROM "posts"
14
+ Fixture Insert (0.1ms) 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)
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
+  (0.1ms) rollback transaction
17
+  (0.0ms) begin transaction
18
+ Fixture Delete (0.1ms) DELETE FROM "authors"
19
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
20
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.0ms) DELETE FROM "posts"
22
+ Fixture Insert (0.1ms) 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
+  (0.1ms) rollback transaction
25
+  (0.0ms) begin transaction
26
+ Fixture Delete (0.1ms) DELETE FROM "authors"
27
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)
29
+ Fixture Delete (0.0ms) DELETE FROM "posts"
30
+ Fixture Insert (0.1ms) 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)
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
+  (0.1ms) rollback transaction
33
+  (0.0ms) begin transaction
34
+ Fixture Delete (0.1ms) DELETE FROM "authors"
35
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
36
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.0ms) DELETE FROM "posts"
38
+ Fixture Insert (0.1ms) 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
+  (0.1ms) rollback transaction
41
+  (0.0ms) begin transaction
42
+ Fixture Delete (0.1ms) DELETE FROM "authors"
43
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)
45
+ Fixture Delete (0.0ms) DELETE FROM "posts"
46
+ Fixture Insert (0.1ms) 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)
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
+  (0.1ms) rollback transaction
49
+  (0.0ms) begin transaction
50
+ Fixture Delete (0.1ms) DELETE FROM "authors"
51
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 980190962)
52
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.0ms) DELETE FROM "posts"
54
+ Fixture Insert (0.1ms) 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
+  (0.1ms) rollback transaction
57
+  (0.0ms) begin transaction
58
+ Fixture Delete (0.1ms) DELETE FROM "authors"
59
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("name", "created_at", "updated_at", "id") VALUES ('MyString', '2013-08-31 14:17:03', '2013-08-31 14:17:03', 298486374)
61
+ Fixture Delete (0.0ms) DELETE FROM "posts"
62
+ Fixture Insert (0.1ms) 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)
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
+  (0.1ms) rollback transaction
65
+  (0.2ms) begin transaction
66
+ Fixture Delete (0.1ms) DELETE FROM "authors"
67
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-31 14:22:09', '2013-08-31 14:22:09')
68
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-31 14:22:09', '2013-08-31 14:22:09')
70
+ Fixture Delete (0.0ms) DELETE FROM "posts"
71
+ Fixture Insert (0.0ms) 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-08-31 14:22:09', '2013-08-31 14:22:09')
72
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
74
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
76
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
78
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
80
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
82
+  (893.4ms) commit transaction
83
+  (0.1ms) begin transaction
84
+ ------------------------------------------------------------------------
85
+ ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
86
+ ------------------------------------------------------------------------
87
+ Author Load (0.3ms) 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
+  (0.0ms) rollback transaction
89
+  (0.1ms) begin transaction
90
+ ----------------------------------------------------------------------------
91
+ ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
92
+ ----------------------------------------------------------------------------
93
+  (0.0ms) rollback transaction
94
+  (0.1ms) begin transaction
95
+ -----------------------------------------------------------------------------
96
+ ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
97
+ -----------------------------------------------------------------------------
98
+  (0.0ms) rollback transaction
99
+  (0.0ms) begin transaction
100
+ -----------------------------------------------------------------------------
101
+ ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
102
+ -----------------------------------------------------------------------------
103
+ Author Load (0.1ms) 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'))
104
+ SQL (0.1ms) 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
+  (0.1ms) rollback transaction
106
+  (0.1ms) begin transaction
107
+ -------------------------------------------------------------
108
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions
109
+ -------------------------------------------------------------
110
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
111
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
112
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
113
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
114
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
115
+  (0.0ms) rollback transaction
116
+  (0.0ms) begin transaction
117
+ ----------------------------------------------------------------------------
118
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
119
+ ----------------------------------------------------------------------------
120
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
121
+ Post Load (0.1ms) 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]]
122
+  (16.1ms) rollback transaction
123
+  (0.2ms) begin transaction
124
+ ----------------------------------------------------------------------
125
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
126
+ ----------------------------------------------------------------------
127
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
128
+  (0.0ms) rollback transaction
129
+  (0.0ms) begin transaction
130
+ -------------------------------------------------------------------------------------
131
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
132
+ -------------------------------------------------------------------------------------
133
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
134
+ Post Load (0.1ms) 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
+  (0.1ms) rollback transaction
136
+  (0.3ms) begin transaction
137
+ Fixture Delete (0.1ms) DELETE FROM "authors"
138
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-31 14:22:18', '2013-08-31 14:22:18')
139
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-31 14:22:18', '2013-08-31 14:22:18')
141
+ Fixture Delete (0.1ms) DELETE FROM "posts"
142
+ Fixture Insert (0.1ms) 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-08-31 14:22:18', '2013-08-31 14:22:18')
143
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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')
145
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
147
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
149
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
151
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
153
+  (293.0ms) commit transaction
154
+  (0.1ms) begin transaction
155
+ ------------------------------------------------------------------------
156
+ ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
157
+ ------------------------------------------------------------------------
158
+ Author Load (0.3ms) 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
+  (0.0ms) rollback transaction
160
+  (0.1ms) begin transaction
161
+ ----------------------------------------------------------------------------
162
+ ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
163
+ ----------------------------------------------------------------------------
164
+  (0.0ms) rollback transaction
165
+  (0.0ms) begin transaction
166
+ -----------------------------------------------------------------------------
167
+ ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
168
+ -----------------------------------------------------------------------------
169
+  (0.0ms) rollback transaction
170
+  (0.0ms) begin transaction
171
+ -----------------------------------------------------------------------------
172
+ ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
173
+ -----------------------------------------------------------------------------
174
+ Author Load (0.1ms) 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'))
175
+ SQL (0.1ms) 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
+  (0.1ms) rollback transaction
177
+  (0.1ms) begin transaction
178
+ -------------------------------------------------------------
179
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions
180
+ -------------------------------------------------------------
181
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
182
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
183
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
184
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
185
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
186
+  (0.0ms) rollback transaction
187
+  (0.0ms) begin transaction
188
+ ----------------------------------------------------------------------------
189
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
190
+ ----------------------------------------------------------------------------
191
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
192
+ Post Load (0.1ms) 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]]
193
+  (16.4ms) rollback transaction
194
+  (0.3ms) begin transaction
195
+ ----------------------------------------------------------------------
196
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
197
+ ----------------------------------------------------------------------
198
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
199
+  (0.0ms) rollback transaction
200
+  (0.0ms) begin transaction
201
+ -------------------------------------------------------------------------------------
202
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
203
+ -------------------------------------------------------------------------------------
204
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
205
+ Post Load (0.1ms) 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
+  (0.0ms) rollback transaction
207
+  (0.3ms) begin transaction
208
+ Fixture Delete (0.1ms) DELETE FROM "authors"
209
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-31 15:35:47', '2013-08-31 15:35:47')
210
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-31 15:35:47', '2013-08-31 15:35:47')
212
+ Fixture Delete (0.0ms) DELETE FROM "posts"
213
+ Fixture Insert (0.0ms) 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-08-31 15:35:47', '2013-08-31 15:35:47')
214
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
216
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
218
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
220
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
222
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
224
+  (421.5ms) commit transaction
225
+  (0.1ms) begin transaction
226
+ ------------------------------------------------------------------------
227
+ ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
228
+ ------------------------------------------------------------------------
229
+ Author Load (0.3ms) 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
+  (0.0ms) rollback transaction
231
+  (0.0ms) begin transaction
232
+ ----------------------------------------------------------------------------
233
+ ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
234
+ ----------------------------------------------------------------------------
235
+  (0.0ms) rollback transaction
236
+  (0.0ms) begin transaction
237
+ -----------------------------------------------------------------------------
238
+ ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
239
+ -----------------------------------------------------------------------------
240
+  (0.0ms) rollback transaction
241
+  (0.0ms) begin transaction
242
+ -----------------------------------------------------------------------------
243
+ ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
244
+ -----------------------------------------------------------------------------
245
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
246
+  (0.0ms) rollback transaction
247
+  (0.0ms) begin transaction
248
+ -----------------------------------------------------------------------------
249
+ ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
250
+ -----------------------------------------------------------------------------
251
+ Author Load (0.1ms) 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
+ SQL (0.1ms) 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'))
253
+  (0.1ms) rollback transaction
254
+  (0.1ms) begin transaction
255
+ -------------------------------------------------------------
256
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions
257
+ -------------------------------------------------------------
258
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
259
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
260
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
261
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
262
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
263
+  (0.0ms) rollback transaction
264
+  (0.0ms) begin transaction
265
+ ----------------------------------------------------------------------------
266
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
267
+ ----------------------------------------------------------------------------
268
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
269
+ Post Load (0.1ms) 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
+  (0.1ms) rollback transaction
271
+  (0.0ms) begin transaction
272
+ ----------------------------------------------------------------------
273
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
274
+ ----------------------------------------------------------------------
275
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
276
+  (0.0ms) rollback transaction
277
+  (0.0ms) begin transaction
278
+ -------------------------------------------------------------------------------------
279
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
280
+ -------------------------------------------------------------------------------------
281
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
282
+ Post Load (0.1ms) 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]]
283
+  (0.0ms) rollback transaction
284
+  (0.3ms) begin transaction
285
+ Fixture Delete (0.1ms) DELETE FROM "authors"
286
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-31 15:36:33', '2013-08-31 15:36:33')
287
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-31 15:36:33', '2013-08-31 15:36:33')
289
+ Fixture Delete (0.0ms) DELETE FROM "posts"
290
+ Fixture Insert (0.1ms) 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-08-31 15:36:33', '2013-08-31 15:36:33')
291
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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')
293
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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')
295
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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')
297
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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')
299
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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')
301
+  (302.3ms) commit transaction
302
+  (0.1ms) begin transaction
303
+ ------------------------------------------------------------------------
304
+ ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
305
+ ------------------------------------------------------------------------
306
+ Author Load (0.3ms) 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
+  (0.0ms) rollback transaction
308
+  (0.1ms) begin transaction
309
+ ----------------------------------------------------------------------------
310
+ ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
311
+ ----------------------------------------------------------------------------
312
+  (0.0ms) rollback transaction
313
+  (0.0ms) begin transaction
314
+ -----------------------------------------------------------------------------
315
+ ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
316
+ -----------------------------------------------------------------------------
317
+  (0.0ms) rollback transaction
318
+  (0.0ms) begin transaction
319
+ -----------------------------------------------------------------------------
320
+ ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
321
+ -----------------------------------------------------------------------------
322
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
323
+  (0.0ms) rollback transaction
324
+  (0.0ms) begin transaction
325
+ -----------------------------------------------------------------------------
326
+ ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
327
+ -----------------------------------------------------------------------------
328
+ Author Load (0.1ms) 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
+ SQL (0.1ms) 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'))
330
+  (0.1ms) rollback transaction
331
+  (0.1ms) begin transaction
332
+ -------------------------------------------------------------
333
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions
334
+ -------------------------------------------------------------
335
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
336
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
337
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
338
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
339
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
340
+  (0.0ms) rollback transaction
341
+  (0.0ms) begin transaction
342
+ ----------------------------------------------------------------------------
343
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
344
+ ----------------------------------------------------------------------------
345
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
346
+ Post Load (0.1ms) 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
+  (0.1ms) rollback transaction
348
+  (0.0ms) begin transaction
349
+ ----------------------------------------------------------------------
350
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
351
+ ----------------------------------------------------------------------
352
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
353
+  (0.0ms) rollback transaction
354
+  (0.0ms) begin transaction
355
+ -------------------------------------------------------------------------------------
356
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
357
+ -------------------------------------------------------------------------------------
358
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
359
+ Post Load (0.1ms) 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]]
360
+  (0.0ms) rollback transaction
361
+  (0.3ms) begin transaction
362
+ Fixture Delete (0.1ms) DELETE FROM "authors"
363
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-31 15:36:46', '2013-08-31 15:36:46')
364
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-31 15:36:46', '2013-08-31 15:36:46')
366
+ Fixture Delete (0.1ms) DELETE FROM "posts"
367
+ Fixture Insert (0.0ms) 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-08-31 15:36:46', '2013-08-31 15:36:46')
368
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
370
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
372
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
374
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
376
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
378
+  (280.7ms) commit transaction
379
+  (0.1ms) begin transaction
380
+ ------------------------------------------------------------------------
381
+ ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
382
+ ------------------------------------------------------------------------
383
+ Author Load (0.3ms) 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
+  (0.0ms) rollback transaction
385
+  (0.0ms) begin transaction
386
+ ----------------------------------------------------------------------------
387
+ ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
388
+ ----------------------------------------------------------------------------
389
+  (0.0ms) rollback transaction
390
+  (0.0ms) begin transaction
391
+ -----------------------------------------------------------------------------
392
+ ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
393
+ -----------------------------------------------------------------------------
394
+  (0.0ms) rollback transaction
395
+  (0.0ms) begin transaction
396
+ -----------------------------------------------------------------------------
397
+ ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
398
+ -----------------------------------------------------------------------------
399
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
400
+  (0.0ms) rollback transaction
401
+  (0.0ms) begin transaction
402
+ -----------------------------------------------------------------------------
403
+ ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
404
+ -----------------------------------------------------------------------------
405
+ Author Load (0.1ms) 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
+ SQL (0.1ms) 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'))
407
+  (0.1ms) rollback transaction
408
+  (0.0ms) begin transaction
409
+ -------------------------------------------------------------
410
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions
411
+ -------------------------------------------------------------
412
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
413
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
414
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
415
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
416
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
417
+  (0.0ms) rollback transaction
418
+  (0.0ms) begin transaction
419
+ ----------------------------------------------------------------------------
420
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
421
+ ----------------------------------------------------------------------------
422
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
423
+ Post Load (0.1ms) 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
+  (0.1ms) rollback transaction
425
+  (0.0ms) begin transaction
426
+ ----------------------------------------------------------------------
427
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
428
+ ----------------------------------------------------------------------
429
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
430
+  (0.0ms) rollback transaction
431
+  (0.0ms) begin transaction
432
+ -------------------------------------------------------------------------------------
433
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
434
+ -------------------------------------------------------------------------------------
435
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
436
+ Post Load (0.1ms) 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]]
437
+  (0.0ms) 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>