activerecord_any_of 1.1 → 1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9596994399dde0f68fd7f66190597b3d1342aea
4
- data.tar.gz: 92c72d9afc6d5748552c2dd582aae86aa0763f0c
3
+ metadata.gz: 5047c28acc2012bdd8941d946180d5587354567b
4
+ data.tar.gz: fb3a7ec4a6a999b8c7b5877ee3317bdcd9a37912
5
5
  SHA512:
6
- metadata.gz: 5d801f39fdd970de448edeb11bf1abbc3bd41e6c69a94fd56a8b51f8664c8247e25ea86044859671a7ad508feac9e842ccce3a59f69951660e27b97536eef299
7
- data.tar.gz: 2621b8ebbb70ad7933c4df55f3b676d752b856da623aa7bd1d2b5acc9b93f45b542f99132343a2b4d2283e4f6203e0a3a6ac3ec3b3755098fcdfb7d0ef7e4239
6
+ metadata.gz: 723692244e87973207876e3b0e065c3ebe11f461f58b463a2270410fe6ece1cc2925a9ef3ee44b1f54a424f1cddba2cd5b15a8556fe43720541e2176a4c9e9f5
7
+ data.tar.gz: e4e673618cb1354433b5e374ecc966464a63b0b770a64931fa80216a494a9f8460b3f8f0a95754969a17f1c4710bd5941c7158eee816fc359467ec7707ff11ef
data/README.md CHANGED
@@ -1,30 +1,118 @@
1
1
  # ActiverecordAnyOf
2
2
 
3
- This gem provides `#any_of` and `#none_of` on ActiveRecord.
3
+ ## A note for < 1.2 users
4
4
 
5
- `#any_of` is inspired by [any_of from mongoid](http://two.mongoid.org/docs/querying/criteria.html#any_of).
5
+ There was a lot of confusion about explit/implicit hash parameter notation,
6
+ with people expecting this to generate an OR query :
6
7
 
7
- It allows to compute an `OR` like query that leverages AR's `#where` syntax:
8
+ ```ruby
9
+ User.where.any_of(name: 'Doe', active: true)
10
+ ```
11
+
12
+ This wouldn't work, since there is only one parameter, here : `{name: 'Doe', active: true}`,
13
+ so there's a single group of condition that is joined as a AND. To achieve
14
+ expected result, this should have been used :
8
15
 
9
16
  ```ruby
10
- users = User.where.any_of("email like '%@example.com'", {banned: true}).destroy_all
11
- # DELETE FROM users WHERE email LIKE '%@example.com' OR banned = '1';
17
+ User.where.any_of({name: 'Doe'}, {active: true})
12
18
  ```
13
19
 
14
- It can be used anywhere `#where` is valid :
20
+
21
+ To be true to principle of least surprise, we now automatically expand
22
+ parameters consisting of a single Hash as a hash for each key, so first
23
+ query will indeed generate :
15
24
 
16
25
  ```ruby
17
- manual_removal = User.where(id: params[:users][:destroy_ids])
18
- User.where.any_of(manual_removal, "email like '%@example.com'", {banned: true})
19
- @company.users.where.any_of(manual_removal, "email like '%@example.com'", {banned: true})
20
- User.where(offline: false).where.any_of( manual_removal, "email like '%@example.com'", {banned: true})
26
+ User.where.any_of(name: 'Doe', active: true)
27
+ # => SELECT * FROM users WHERE name = 'Doe' OR active = '1'
28
+ ```
29
+
30
+
31
+ Grouping conditions can still be achieved using explicit curly brackets :
32
+
33
+ ```ruby
34
+ User.where.any_of({first_name: 'John', last_name: 'Doe'}, active: true)
35
+ # => SELECT * FROM users WHERE (first_name = 'John' AND last_name = 'Doe') OR active = '1'
21
36
  ```
22
37
 
38
+
39
+ ## Introduction
40
+
41
+ This gem provides `#any_of` and `#none_of` on ActiveRecord.
42
+
43
+ `#any_of` is inspired by [any_of from mongoid](http://two.mongoid.org/docs/querying/criteria.html#any_of).
44
+
23
45
  Its main purpose is to both :
24
46
 
25
47
  * remove the need to write a sql string when we want an `OR`
26
48
  * allows to write dynamic `OR` queries, which would be a pain with a string
27
49
 
50
+
51
+ ## Usage
52
+
53
+ ### `#any_of`
54
+
55
+ It allows to compute an `OR` like query that leverages AR's `#where` syntax:
56
+
57
+
58
+ #### basics
59
+
60
+ ```ruby
61
+ User.where.any_of(first_name: 'Joe', last_name: 'Joe')
62
+ # => SELECT * FROM users WHERE first_name = 'Joe' OR last_name = 'Joe'
63
+ ```
64
+
65
+
66
+ #### grouped conditions
67
+
68
+ You can separate sets of hash condition by explicitly group them as hashes :
69
+
70
+ ```ruby
71
+ User.where.any_of({first_name: 'John', last_name: 'Joe'}, {first_name: 'Simon', last_name: 'Joe'})
72
+ # => SELECT * FROM users WHERE ( first_name = 'John' AND last_name = 'Joe' ) OR ( first_name = 'Simon' AND last_name = 'Joe' )
73
+ ```
74
+
75
+
76
+ #### it's plain #where syntax
77
+
78
+ Each `#any_of` set is the same kind you would have passed to #where :
79
+
80
+ ```ruby
81
+ Client.where.any_of("orders_count = '2'", ["name = ?", 'Joe'], {email: 'joe@example.com'})
82
+ ```
83
+
84
+
85
+ #### with relations
86
+
87
+ You can as well pass `#any_of` to other relations :
88
+
89
+ ```ruby
90
+ Client.where("orders_count = '2'").where.any_of({ email: 'joe@example.com' }, { email: 'john@example.com' })
91
+ ```
92
+
93
+
94
+ #### with associations
95
+
96
+ And with associations :
97
+
98
+ ```ruby
99
+ User.find(1).posts.where.any_of({published: false}, "user_id IS NULL")
100
+ ```
101
+
102
+
103
+ #### dynamic OR queries
104
+
105
+ The best part is that `#any_of` accepts other relations as parameter, to help compute
106
+ dynamic `OR` queries :
107
+
108
+ ```ruby
109
+ banned_users = User.where(banned: true)
110
+ unconfirmed_users = User.where("confirmed_at IS NULL")
111
+ inactive_users = User.where.any_of(banned_users, unconfirmed_users)
112
+ ```
113
+
114
+ ### `#none_of`
115
+
28
116
  `#none_of` is the negative version of `#any_of`. This will return all active users :
29
117
 
30
118
  ```ruby
@@ -1,6 +1,10 @@
1
1
  module ActiverecordAnyOf
2
2
  class AlternativeBuilder
3
3
  def initialize(match_type, context, *queries)
4
+ if Hash === queries.first and queries.count == 1
5
+ queries = queries.first.each_pair.map { |attr, predicate| Hash[attr, predicate] }
6
+ end
7
+
4
8
  @builder = match_type == :negative ? NegativeBuilder.new(context, *queries) : PositiveBuilder.new(context, *queries)
5
9
  end
6
10
 
@@ -1,3 +1,3 @@
1
1
  module ActiverecordAnyOf
2
- VERSION = "1.1"
2
+ VERSION = "1.2"
3
3
  end
@@ -3,26 +3,39 @@ require 'activerecord_any_of/alternative_builder'
3
3
  module ActiverecordAnyOf
4
4
  module Chained
5
5
  # Returns a new relation, which includes results matching any of the conditions
6
- # passed as parameters. You can think of it as a sql <tt>OR</tt> implementation.
6
+ # passed as parameters. You can think of it as a sql <tt>OR</tt> implementation :
7
7
  #
8
- # Each #any_of parameter is the same set you would have passed to #where :
8
+ # User.where.any_of(first_name: 'Joe', last_name: 'Joe')
9
+ # # => SELECT * FROM users WHERE first_name = 'Joe' OR last_name = 'Joe'
10
+ #
11
+ #
12
+ # You can separate sets of hash condition by explicitly group them as hashes :
13
+ #
14
+ # User.where.any_of({first_name: 'John', last_name: 'Joe'}, {first_name: 'Simon', last_name: 'Joe'})
15
+ # # => SELECT * FROM users WHERE ( first_name = 'John' AND last_name = 'Joe' ) OR ( first_name = 'Simon' AND last_name = 'Joe' )
16
+ #
17
+ #
18
+ # Each #any_of set is the same kind you would have passed to #where :
19
+ #
20
+ # Client.where.any_of("orders_count = '2'", ["name = ?", 'Joe'], {email: 'joe@example.com'})
9
21
  #
10
- # Client.any_of("orders_count = '2'", ["name = ?", 'Joe'], {email: 'joe@example.com'})
11
22
  #
12
23
  # You can as well pass #any_of to other relations :
13
24
  #
14
- # Client.where("orders_count = '2'").any_of({ email: 'joe@example.com' }, { email: 'john@example.com' })
25
+ # Client.where("orders_count = '2'").where.any_of({ email: 'joe@example.com' }, { email: 'john@example.com' })
26
+ #
15
27
  #
16
28
  # And with associations :
17
29
  #
18
- # User.find(1).posts.any_of({published: false}, "user_id IS NULL")
30
+ # User.find(1).posts.where.any_of({published: false}, "user_id IS NULL")
31
+ #
19
32
  #
20
33
  # The best part is that #any_of accepts other relations as parameter, to help compute
21
34
  # dynamic <tt>OR</tt> queries :
22
35
  #
23
36
  # banned_users = User.where(banned: true)
24
37
  # unconfirmed_users = User.where("confirmed_at IS NULL")
25
- # inactive_users = User.any_of(banned_users, unconfirmed_users)
38
+ # inactive_users = User.where.any_of(banned_users, unconfirmed_users)
26
39
  def any_of(*queries)
27
40
  raise ArgumentError, 'Called any_of() with no arguments.' if queries.none?
28
41
  AlternativeBuilder.new(:positive, @scope, *queries).build
@@ -35,7 +48,7 @@ module ActiverecordAnyOf
35
48
  #
36
49
  # banned_users = User.where(banned: true)
37
50
  # unconfirmed_users = User.where("confirmed_at IS NULL")
38
- # active_users = User.none_of(banned_users, unconfirmed_users)
51
+ # active_users = User.where.none_of(banned_users, unconfirmed_users)
39
52
  def none_of(*queries)
40
53
  raise ArgumentError, 'Called none_of() with no arguments.' if queries.none?
41
54
  AlternativeBuilder.new(:negative, @scope, *queries).build
@@ -100,6 +100,10 @@ class ActiverecordAnyOfTest < ActiveSupport::TestCase
100
100
  end
101
101
  end
102
102
 
103
+ test 'calling #any_of with a single Hash as parameter expands it' do
104
+ assert_equal ['David', 'Mary'], Author.where.any_of(name: 'David', id: 2).map(&:name)
105
+ end
106
+
103
107
  if Rails.version >= '4'
104
108
  test 'calling directly #any_of is deprecated in rails-4' do
105
109
  assert_deprecated do
Binary file
@@ -435,3 +435,1093 @@ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_associ
435
435
  Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
436
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
437
   (0.0ms) rollback transaction
438
+  (0.3ms) begin transaction
439
+ Fixture Delete (0.1ms) DELETE FROM "authors"
440
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 10:03:32', '2013-10-19 10:03:32')
441
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 10:03:32', '2013-10-19 10:03:32')
442
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 10:03:32', '2013-10-19 10:03:32')
443
+ Fixture Delete (0.0ms) DELETE FROM "posts"
444
+ 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-10-19 10:03:32', '2013-10-19 10:03:32')
445
+ 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-10-19 10:03:32', '2013-10-19 10:03:32')
446
+ 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-10-19 10:03:32', '2013-10-19 10:03:32')
447
+ 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-10-19 10:03:32', '2013-10-19 10:03:32')
448
+ 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-10-19 10:03:32', '2013-10-19 10:03:32')
449
+ 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-10-19 10:03:32', '2013-10-19 10:03:32')
450
+ 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-10-19 10:03:32', '2013-10-19 10:03:32')
451
+ 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-10-19 10:03:32', '2013-10-19 10:03:32')
452
+ 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-10-19 10:03:32', '2013-10-19 10:03:32')
453
+ 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-10-19 10:03:32', '2013-10-19 10:03:32')
454
+ 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-10-19 10:03:32', '2013-10-19 10:03:32')
455
+  (322.4ms) commit transaction
456
+  (0.1ms) begin transaction
457
+ ------------------------------------------------------------------------
458
+ ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
459
+ ------------------------------------------------------------------------
460
+ 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%')))
461
+  (0.1ms) rollback transaction
462
+  (0.1ms) begin transaction
463
+ ----------------------------------------------------------------------------
464
+ ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
465
+ ----------------------------------------------------------------------------
466
+  (0.0ms) rollback transaction
467
+  (0.0ms) begin transaction
468
+ -----------------------------------------------------------------------------
469
+ ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
470
+ -----------------------------------------------------------------------------
471
+  (0.0ms) rollback transaction
472
+  (0.0ms) begin transaction
473
+ -----------------------------------------------------------------------------
474
+ ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
475
+ -----------------------------------------------------------------------------
476
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
477
+  (0.0ms) rollback transaction
478
+  (0.0ms) begin transaction
479
+ -----------------------------------------------------------------------------
480
+ ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
481
+ -----------------------------------------------------------------------------
482
+ 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'))
483
+ 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'))
484
+  (0.1ms) rollback transaction
485
+  (0.0ms) begin transaction
486
+ -------------------------------------------------------------
487
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions
488
+ -------------------------------------------------------------
489
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
490
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
491
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
492
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
493
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
494
+  (0.0ms) rollback transaction
495
+  (0.0ms) begin transaction
496
+ ----------------------------------------------------------------------------
497
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
498
+ ----------------------------------------------------------------------------
499
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
500
+ 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]]
501
+  (0.1ms) rollback transaction
502
+  (0.1ms) begin transaction
503
+ ----------------------------------------------------------------------
504
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
505
+ ----------------------------------------------------------------------
506
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
507
+  (0.0ms) rollback transaction
508
+  (0.0ms) begin transaction
509
+ -------------------------------------------------------------------------------------
510
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
511
+ -------------------------------------------------------------------------------------
512
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
513
+ 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]]
514
+  (0.0ms) rollback transaction
515
+  (0.0ms) begin transaction
516
+ -----------------------------------------------
517
+ ActiverecordAnyOfTest: test_finding_with_groups
518
+ -----------------------------------------------
519
+  (0.0ms) rollback transaction
520
+  (0.3ms) begin transaction
521
+ Fixture Delete (0.1ms) DELETE FROM "authors"
522
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 10:03:55', '2013-10-19 10:03:55')
523
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 10:03:55', '2013-10-19 10:03:55')
524
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 10:03:55', '2013-10-19 10:03:55')
525
+ Fixture Delete (0.1ms) DELETE FROM "posts"
526
+ 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-10-19 10:03:55', '2013-10-19 10:03:55')
527
+ 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-10-19 10:03:55', '2013-10-19 10:03:55')
528
+ 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-10-19 10:03:55', '2013-10-19 10:03:55')
529
+ 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-10-19 10:03:55', '2013-10-19 10:03:55')
530
+ 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-10-19 10:03:55', '2013-10-19 10:03:55')
531
+ 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-10-19 10:03:55', '2013-10-19 10:03:55')
532
+ 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-10-19 10:03:55', '2013-10-19 10:03:55')
533
+ 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-10-19 10:03:55', '2013-10-19 10:03:55')
534
+ 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-10-19 10:03:55', '2013-10-19 10:03:55')
535
+ 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-10-19 10:03:55', '2013-10-19 10:03:55')
536
+ 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-10-19 10:03:55', '2013-10-19 10:03:55')
537
+  (342.9ms) commit transaction
538
+  (0.1ms) begin transaction
539
+ ------------------------------------------------------------------------
540
+ ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
541
+ ------------------------------------------------------------------------
542
+ 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%')))
543
+  (0.0ms) rollback transaction
544
+  (0.1ms) begin transaction
545
+ ----------------------------------------------------------------------------
546
+ ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
547
+ ----------------------------------------------------------------------------
548
+  (0.0ms) rollback transaction
549
+  (0.0ms) begin transaction
550
+ -----------------------------------------------------------------------------
551
+ ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
552
+ -----------------------------------------------------------------------------
553
+  (0.0ms) rollback transaction
554
+  (0.0ms) begin transaction
555
+ -----------------------------------------------------------------------------
556
+ ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
557
+ -----------------------------------------------------------------------------
558
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
559
+  (0.0ms) rollback transaction
560
+  (0.0ms) begin transaction
561
+ -----------------------------------------------------------------------------
562
+ ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
563
+ -----------------------------------------------------------------------------
564
+ 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'))
565
+ 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'))
566
+  (0.1ms) rollback transaction
567
+  (0.0ms) begin transaction
568
+ -------------------------------------------------------------
569
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions
570
+ -------------------------------------------------------------
571
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
572
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
573
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
574
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
575
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
576
+  (0.0ms) rollback transaction
577
+  (0.0ms) begin transaction
578
+ ----------------------------------------------------------------------------
579
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
580
+ ----------------------------------------------------------------------------
581
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
582
+ 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]]
583
+  (0.0ms) rollback transaction
584
+  (0.0ms) begin transaction
585
+ ----------------------------------------------------------------------
586
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
587
+ ----------------------------------------------------------------------
588
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
589
+  (0.0ms) rollback transaction
590
+  (0.0ms) begin transaction
591
+ -------------------------------------------------------------------------------------
592
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
593
+ -------------------------------------------------------------------------------------
594
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
595
+ 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]]
596
+  (0.0ms) rollback transaction
597
+  (0.0ms) begin transaction
598
+ -----------------------------------------------
599
+ ActiverecordAnyOfTest: test_finding_with_groups
600
+ -----------------------------------------------
601
+  (0.2ms) rollback transaction
602
+  (0.3ms) begin transaction
603
+ Fixture Delete (0.1ms) DELETE FROM "authors"
604
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 10:10:47', '2013-10-19 10:10:47')
605
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 10:10:47', '2013-10-19 10:10:47')
606
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 10:10:47', '2013-10-19 10:10:47')
607
+ Fixture Delete (0.1ms) DELETE FROM "posts"
608
+ 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-10-19 10:10:47', '2013-10-19 10:10:47')
609
+ 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-10-19 10:10:47', '2013-10-19 10:10:47')
610
+ 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-10-19 10:10:47', '2013-10-19 10:10:47')
611
+ 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-10-19 10:10:47', '2013-10-19 10:10:47')
612
+ 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-10-19 10:10:47', '2013-10-19 10:10:47')
613
+ 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-10-19 10:10:47', '2013-10-19 10:10:47')
614
+ 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-10-19 10:10:47', '2013-10-19 10:10:47')
615
+ 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-10-19 10:10:47', '2013-10-19 10:10:47')
616
+ 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-10-19 10:10:47', '2013-10-19 10:10:47')
617
+ 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-10-19 10:10:47', '2013-10-19 10:10:47')
618
+ 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-10-19 10:10:47', '2013-10-19 10:10:47')
619
+  (318.0ms) commit transaction
620
+  (0.1ms) begin transaction
621
+ ------------------------------------------------------------------------
622
+ ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
623
+ ------------------------------------------------------------------------
624
+ 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%')))
625
+  (0.1ms) rollback transaction
626
+  (0.1ms) begin transaction
627
+ ----------------------------------------------------------------------------
628
+ ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
629
+ ----------------------------------------------------------------------------
630
+  (0.0ms) rollback transaction
631
+  (0.0ms) begin transaction
632
+ -----------------------------------------------------------------------------
633
+ ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
634
+ -----------------------------------------------------------------------------
635
+  (0.0ms) rollback transaction
636
+  (0.0ms) begin transaction
637
+ -----------------------------------------------------------------------------
638
+ ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
639
+ -----------------------------------------------------------------------------
640
+  (0.2ms) rollback transaction
641
+  (0.3ms) begin transaction
642
+ Fixture Delete (0.1ms) DELETE FROM "authors"
643
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 10:15:33', '2013-10-19 10:15:33')
644
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 10:15:33', '2013-10-19 10:15:33')
645
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 10:15:33', '2013-10-19 10:15:33')
646
+ Fixture Delete (0.1ms) DELETE FROM "posts"
647
+ 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-10-19 10:15:33', '2013-10-19 10:15:33')
648
+ 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-10-19 10:15:33', '2013-10-19 10:15:33')
649
+ 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-10-19 10:15:33', '2013-10-19 10:15:33')
650
+ 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-10-19 10:15:33', '2013-10-19 10:15:33')
651
+ 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-10-19 10:15:33', '2013-10-19 10:15:33')
652
+ 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-10-19 10:15:33', '2013-10-19 10:15:33')
653
+ 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-10-19 10:15:33', '2013-10-19 10:15:33')
654
+ 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-10-19 10:15:33', '2013-10-19 10:15:33')
655
+ 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-10-19 10:15:33', '2013-10-19 10:15:33')
656
+ 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-10-19 10:15:33', '2013-10-19 10:15:33')
657
+ 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-10-19 10:15:33', '2013-10-19 10:15:33')
658
+  (291.8ms) commit transaction
659
+  (0.1ms) begin transaction
660
+ -----------------------------------------------------
661
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
662
+ -----------------------------------------------------
663
+ SQLite3::SQLException: only a single result allowed for a SELECT that is part of an expression: SELECT "posts".* FROM "posts" WHERE (SELECT "posts".* FROM "posts" GROUP BY type UNION SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2)
664
+ SQLite3::SQLException: only a single result allowed for a SELECT that is part of an expression: SELECT "posts".* FROM "posts" WHERE (SELECT "posts".* FROM "posts" GROUP BY type UNION SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2)
665
+ SQLite3::SQLException: near "UNION": syntax error: SELECT "posts".* FROM "posts" WHERE ((SELECT "posts".* FROM "posts" GROUP BY type) UNION (SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2))
666
+ SQLite3::SQLException: near "(": syntax error: (SELECT "posts".* FROM "posts" GROUP BY type) UNION (SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2)
667
+  (0.1ms) rollback transaction
668
+  (0.3ms) begin transaction
669
+ Fixture Delete (0.1ms) DELETE FROM "authors"
670
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 11:48:21', '2013-10-19 11:48:21')
671
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 11:48:21', '2013-10-19 11:48:21')
672
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 11:48:21', '2013-10-19 11:48:21')
673
+ Fixture Delete (0.0ms) DELETE FROM "posts"
674
+ 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-10-19 11:48:21', '2013-10-19 11:48:21')
675
+ 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-10-19 11:48:21', '2013-10-19 11:48:21')
676
+ 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-10-19 11:48:21', '2013-10-19 11:48:21')
677
+ 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-10-19 11:48:21', '2013-10-19 11:48:21')
678
+ 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-10-19 11:48:21', '2013-10-19 11:48:21')
679
+ 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-10-19 11:48:21', '2013-10-19 11:48:21')
680
+ 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-10-19 11:48:21', '2013-10-19 11:48:21')
681
+ 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-10-19 11:48:21', '2013-10-19 11:48:21')
682
+ 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-10-19 11:48:21', '2013-10-19 11:48:21')
683
+ 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-10-19 11:48:21', '2013-10-19 11:48:21')
684
+ 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-10-19 11:48:21', '2013-10-19 11:48:21')
685
+  (303.4ms) commit transaction
686
+  (0.1ms) begin transaction
687
+ -----------------------------------------------------
688
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
689
+ -----------------------------------------------------
690
+  (0.2ms) rollback transaction
691
+  (0.3ms) begin transaction
692
+ Fixture Delete (0.1ms) DELETE FROM "authors"
693
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 11:52:06', '2013-10-19 11:52:06')
694
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 11:52:06', '2013-10-19 11:52:06')
695
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 11:52:06', '2013-10-19 11:52:06')
696
+ Fixture Delete (0.0ms) DELETE FROM "posts"
697
+ 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-10-19 11:52:06', '2013-10-19 11:52:06')
698
+ 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-10-19 11:52:06', '2013-10-19 11:52:06')
699
+ 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-10-19 11:52:06', '2013-10-19 11:52:06')
700
+ 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-10-19 11:52:06', '2013-10-19 11:52:06')
701
+ 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-10-19 11:52:06', '2013-10-19 11:52:06')
702
+ 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-10-19 11:52:06', '2013-10-19 11:52:06')
703
+ 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-10-19 11:52:06', '2013-10-19 11:52:06')
704
+ 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-10-19 11:52:06', '2013-10-19 11:52:06')
705
+ 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-10-19 11:52:06', '2013-10-19 11:52:06')
706
+ 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-10-19 11:52:06', '2013-10-19 11:52:06')
707
+ 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-10-19 11:52:06', '2013-10-19 11:52:06')
708
+  (286.0ms) commit transaction
709
+  (0.1ms) begin transaction
710
+ -----------------------------------------------------
711
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
712
+ -----------------------------------------------------
713
+  (0.1ms) rollback transaction
714
+  (0.3ms) begin transaction
715
+ Fixture Delete (0.1ms) DELETE FROM "authors"
716
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 11:52:58', '2013-10-19 11:52:58')
717
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 11:52:58', '2013-10-19 11:52:58')
718
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 11:52:58', '2013-10-19 11:52:58')
719
+ Fixture Delete (0.1ms) DELETE FROM "posts"
720
+ 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-10-19 11:52:58', '2013-10-19 11:52:58')
721
+ 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-10-19 11:52:58', '2013-10-19 11:52:58')
722
+ 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-10-19 11:52:58', '2013-10-19 11:52:58')
723
+ 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-10-19 11:52:58', '2013-10-19 11:52:58')
724
+ 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-10-19 11:52:58', '2013-10-19 11:52:58')
725
+ 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-10-19 11:52:58', '2013-10-19 11:52:58')
726
+ 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-10-19 11:52:58', '2013-10-19 11:52:58')
727
+ 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-10-19 11:52:58', '2013-10-19 11:52:58')
728
+ 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-10-19 11:52:58', '2013-10-19 11:52:58')
729
+ 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-10-19 11:52:58', '2013-10-19 11:52:58')
730
+ 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-10-19 11:52:58', '2013-10-19 11:52:58')
731
+  (299.2ms) commit transaction
732
+  (0.1ms) begin transaction
733
+ -----------------------------------------------------
734
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
735
+ -----------------------------------------------------
736
+  (0.1ms) rollback transaction
737
+  (0.3ms) begin transaction
738
+ Fixture Delete (0.1ms) DELETE FROM "authors"
739
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 11:53:20', '2013-10-19 11:53:20')
740
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 11:53:20', '2013-10-19 11:53:20')
741
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 11:53:20', '2013-10-19 11:53:20')
742
+ Fixture Delete (0.0ms) DELETE FROM "posts"
743
+ 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-10-19 11:53:20', '2013-10-19 11:53:20')
744
+ 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-10-19 11:53:20', '2013-10-19 11:53:20')
745
+ 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-10-19 11:53:20', '2013-10-19 11:53:20')
746
+ 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-10-19 11:53:20', '2013-10-19 11:53:20')
747
+ 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-10-19 11:53:20', '2013-10-19 11:53:20')
748
+ 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-10-19 11:53:20', '2013-10-19 11:53:20')
749
+ 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-10-19 11:53:20', '2013-10-19 11:53:20')
750
+ 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-10-19 11:53:20', '2013-10-19 11:53:20')
751
+ 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-10-19 11:53:20', '2013-10-19 11:53:20')
752
+ 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-10-19 11:53:20', '2013-10-19 11:53:20')
753
+ 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-10-19 11:53:20', '2013-10-19 11:53:20')
754
+  (287.9ms) commit transaction
755
+  (0.1ms) begin transaction
756
+ -----------------------------------------------------
757
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
758
+ -----------------------------------------------------
759
+  (0.2ms) rollback transaction
760
+  (0.3ms) begin transaction
761
+ Fixture Delete (0.1ms) DELETE FROM "authors"
762
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:29:23', '2013-10-19 12:29:23')
763
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 12:29:23', '2013-10-19 12:29:23')
764
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:29:23', '2013-10-19 12:29:23')
765
+ Fixture Delete (0.1ms) DELETE FROM "posts"
766
+ 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-10-19 12:29:23', '2013-10-19 12:29:23')
767
+ 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-10-19 12:29:23', '2013-10-19 12:29:23')
768
+ 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-10-19 12:29:23', '2013-10-19 12:29:23')
769
+ 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-10-19 12:29:23', '2013-10-19 12:29:23')
770
+ 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-10-19 12:29:23', '2013-10-19 12:29:23')
771
+ 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-10-19 12:29:23', '2013-10-19 12:29:23')
772
+ 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-10-19 12:29:23', '2013-10-19 12:29:23')
773
+ 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-10-19 12:29:23', '2013-10-19 12:29:23')
774
+ 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-10-19 12:29:23', '2013-10-19 12:29:23')
775
+ 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-10-19 12:29:23', '2013-10-19 12:29:23')
776
+ 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-10-19 12:29:23', '2013-10-19 12:29:23')
777
+  (300.0ms) commit transaction
778
+  (0.1ms) begin transaction
779
+ -----------------------------------------------------
780
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
781
+ -----------------------------------------------------
782
+  (0.1ms) rollback transaction
783
+  (0.3ms) begin transaction
784
+ Fixture Delete (0.1ms) DELETE FROM "authors"
785
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:29:41', '2013-10-19 12:29:41')
786
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 12:29:41', '2013-10-19 12:29:41')
787
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:29:41', '2013-10-19 12:29:41')
788
+ Fixture Delete (0.1ms) DELETE FROM "posts"
789
+ 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-10-19 12:29:41', '2013-10-19 12:29:41')
790
+ 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-10-19 12:29:41', '2013-10-19 12:29:41')
791
+ 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-10-19 12:29:41', '2013-10-19 12:29:41')
792
+ 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-10-19 12:29:41', '2013-10-19 12:29:41')
793
+ 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-10-19 12:29:41', '2013-10-19 12:29:41')
794
+ 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-10-19 12:29:41', '2013-10-19 12:29:41')
795
+ 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-10-19 12:29:41', '2013-10-19 12:29:41')
796
+ 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-10-19 12:29:41', '2013-10-19 12:29:41')
797
+ 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-10-19 12:29:41', '2013-10-19 12:29:41')
798
+ 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-10-19 12:29:41', '2013-10-19 12:29:41')
799
+ 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-10-19 12:29:41', '2013-10-19 12:29:41')
800
+  (295.0ms) commit transaction
801
+  (0.1ms) begin transaction
802
+ -----------------------------------------------------
803
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
804
+ -----------------------------------------------------
805
+  (0.2ms) rollback transaction
806
+  (0.3ms) begin transaction
807
+ Fixture Delete (0.1ms) DELETE FROM "authors"
808
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:32:41', '2013-10-19 12:32:41')
809
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 12:32:41', '2013-10-19 12:32:41')
810
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:32:41', '2013-10-19 12:32:41')
811
+ Fixture Delete (0.0ms) DELETE FROM "posts"
812
+ 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-10-19 12:32:41', '2013-10-19 12:32:41')
813
+ 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-10-19 12:32:41', '2013-10-19 12:32:41')
814
+ 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-10-19 12:32:41', '2013-10-19 12:32:41')
815
+ 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-10-19 12:32:41', '2013-10-19 12:32:41')
816
+ 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-10-19 12:32:41', '2013-10-19 12:32:41')
817
+ 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-10-19 12:32:41', '2013-10-19 12:32:41')
818
+ 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-10-19 12:32:41', '2013-10-19 12:32:41')
819
+ 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-10-19 12:32:41', '2013-10-19 12:32:41')
820
+ 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-10-19 12:32:41', '2013-10-19 12:32:41')
821
+ 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-10-19 12:32:41', '2013-10-19 12:32:41')
822
+ 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-10-19 12:32:41', '2013-10-19 12:32:41')
823
+  (296.6ms) commit transaction
824
+  (0.1ms) begin transaction
825
+ -----------------------------------------------------
826
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
827
+ -----------------------------------------------------
828
+  (0.3ms) begin transaction
829
+ Fixture Delete (0.1ms) DELETE FROM "authors"
830
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:46:26', '2013-10-19 12:46:26')
831
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 12:46:26', '2013-10-19 12:46:26')
832
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:46:26', '2013-10-19 12:46:26')
833
+ Fixture Delete (0.0ms) DELETE FROM "posts"
834
+ 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-10-19 12:46:26', '2013-10-19 12:46:26')
835
+ 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-10-19 12:46:26', '2013-10-19 12:46:26')
836
+ 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-10-19 12:46:26', '2013-10-19 12:46:26')
837
+ 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-10-19 12:46:26', '2013-10-19 12:46:26')
838
+ 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-10-19 12:46:26', '2013-10-19 12:46:26')
839
+ 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-10-19 12:46:26', '2013-10-19 12:46:26')
840
+ 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-10-19 12:46:26', '2013-10-19 12:46:26')
841
+ 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-10-19 12:46:26', '2013-10-19 12:46:26')
842
+ 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-10-19 12:46:26', '2013-10-19 12:46:26')
843
+ 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-10-19 12:46:26', '2013-10-19 12:46:26')
844
+ 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-10-19 12:46:26', '2013-10-19 12:46:26')
845
+  (317.9ms) commit transaction
846
+  (0.1ms) begin transaction
847
+ -----------------------------------------------------
848
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
849
+ -----------------------------------------------------
850
+  (0.3ms) begin transaction
851
+ Fixture Delete (0.1ms) DELETE FROM "authors"
852
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:47:49', '2013-10-19 12:47:49')
853
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 12:47:49', '2013-10-19 12:47:49')
854
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:47:49', '2013-10-19 12:47:49')
855
+ Fixture Delete (0.0ms) DELETE FROM "posts"
856
+ 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-10-19 12:47:49', '2013-10-19 12:47:49')
857
+ 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-10-19 12:47:49', '2013-10-19 12:47:49')
858
+ 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-10-19 12:47:49', '2013-10-19 12:47:49')
859
+ 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-10-19 12:47:49', '2013-10-19 12:47:49')
860
+ 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-10-19 12:47:49', '2013-10-19 12:47:49')
861
+ 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-10-19 12:47:49', '2013-10-19 12:47:49')
862
+ 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-10-19 12:47:49', '2013-10-19 12:47:49')
863
+ 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-10-19 12:47:49', '2013-10-19 12:47:49')
864
+ 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-10-19 12:47:49', '2013-10-19 12:47:49')
865
+ 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-10-19 12:47:49', '2013-10-19 12:47:49')
866
+ 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-10-19 12:47:49', '2013-10-19 12:47:49')
867
+  (325.8ms) commit transaction
868
+  (0.1ms) begin transaction
869
+ -----------------------------------------------------
870
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
871
+ -----------------------------------------------------
872
+  (0.2ms) rollback transaction
873
+  (0.3ms) begin transaction
874
+ Fixture Delete (0.1ms) DELETE FROM "authors"
875
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:53:01', '2013-10-19 12:53:01')
876
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 12:53:01', '2013-10-19 12:53:01')
877
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:53:01', '2013-10-19 12:53:01')
878
+ Fixture Delete (0.0ms) DELETE FROM "posts"
879
+ 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-10-19 12:53:01', '2013-10-19 12:53:01')
880
+ 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-10-19 12:53:01', '2013-10-19 12:53:01')
881
+ 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-10-19 12:53:01', '2013-10-19 12:53:01')
882
+ 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-10-19 12:53:01', '2013-10-19 12:53:01')
883
+ 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-10-19 12:53:01', '2013-10-19 12:53:01')
884
+ 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-10-19 12:53:01', '2013-10-19 12:53:01')
885
+ 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-10-19 12:53:01', '2013-10-19 12:53:01')
886
+ 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-10-19 12:53:01', '2013-10-19 12:53:01')
887
+ 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-10-19 12:53:01', '2013-10-19 12:53:01')
888
+ 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-10-19 12:53:01', '2013-10-19 12:53:01')
889
+ 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-10-19 12:53:01', '2013-10-19 12:53:01')
890
+  (356.0ms) commit transaction
891
+  (0.1ms) begin transaction
892
+ -----------------------------------------------------
893
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
894
+ -----------------------------------------------------
895
+  (0.2ms) rollback transaction
896
+  (0.3ms) begin transaction
897
+ Fixture Delete (0.1ms) DELETE FROM "authors"
898
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:55:56', '2013-10-19 12:55:56')
899
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 12:55:56', '2013-10-19 12:55:56')
900
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:55:56', '2013-10-19 12:55:56')
901
+ Fixture Delete (0.0ms) DELETE FROM "posts"
902
+ 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-10-19 12:55:56', '2013-10-19 12:55:56')
903
+ 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-10-19 12:55:56', '2013-10-19 12:55:56')
904
+ 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-10-19 12:55:56', '2013-10-19 12:55:56')
905
+ 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-10-19 12:55:56', '2013-10-19 12:55:56')
906
+ 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-10-19 12:55:56', '2013-10-19 12:55:56')
907
+ 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-10-19 12:55:56', '2013-10-19 12:55:56')
908
+ 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-10-19 12:55:56', '2013-10-19 12:55:56')
909
+ 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-10-19 12:55:56', '2013-10-19 12:55:56')
910
+ 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-10-19 12:55:56', '2013-10-19 12:55:56')
911
+ 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-10-19 12:55:56', '2013-10-19 12:55:56')
912
+ 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-10-19 12:55:56', '2013-10-19 12:55:56')
913
+  (302.8ms) commit transaction
914
+  (0.1ms) begin transaction
915
+ -----------------------------------------------------
916
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
917
+ -----------------------------------------------------
918
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x000000031c1fd0>
919
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x00000003238ce8>
920
+  (0.1ms) rollback transaction
921
+  (0.3ms) begin transaction
922
+ Fixture Delete (0.1ms) DELETE FROM "authors"
923
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:57:07', '2013-10-19 12:57:07')
924
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 12:57:07', '2013-10-19 12:57:07')
925
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:57:07', '2013-10-19 12:57:07')
926
+ Fixture Delete (0.1ms) DELETE FROM "posts"
927
+ 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-10-19 12:57:07', '2013-10-19 12:57:07')
928
+ 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-10-19 12:57:07', '2013-10-19 12:57:07')
929
+ 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-10-19 12:57:07', '2013-10-19 12:57:07')
930
+ 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-10-19 12:57:07', '2013-10-19 12:57:07')
931
+ 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-10-19 12:57:07', '2013-10-19 12:57:07')
932
+ 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-10-19 12:57:07', '2013-10-19 12:57:07')
933
+ 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-10-19 12:57:07', '2013-10-19 12:57:07')
934
+ 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-10-19 12:57:07', '2013-10-19 12:57:07')
935
+ 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-10-19 12:57:07', '2013-10-19 12:57:07')
936
+ 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-10-19 12:57:07', '2013-10-19 12:57:07')
937
+ 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-10-19 12:57:07', '2013-10-19 12:57:07')
938
+  (309.8ms) commit transaction
939
+  (0.1ms) begin transaction
940
+ -----------------------------------------------------
941
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
942
+ -----------------------------------------------------
943
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x000000036f1208>
944
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x000000037600b8>
945
+  (0.2ms) rollback transaction
946
+  (0.3ms) begin transaction
947
+ Fixture Delete (0.1ms) DELETE FROM "authors"
948
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:04:06', '2013-10-19 13:04:06')
949
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 13:04:06', '2013-10-19 13:04:06')
950
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:04:06', '2013-10-19 13:04:06')
951
+ Fixture Delete (0.1ms) DELETE FROM "posts"
952
+ 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-10-19 13:04:06', '2013-10-19 13:04:06')
953
+ 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-10-19 13:04:06', '2013-10-19 13:04:06')
954
+ 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-10-19 13:04:06', '2013-10-19 13:04:06')
955
+ 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-10-19 13:04:06', '2013-10-19 13:04:06')
956
+ 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-10-19 13:04:06', '2013-10-19 13:04:06')
957
+ 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-10-19 13:04:06', '2013-10-19 13:04:06')
958
+ 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-10-19 13:04:06', '2013-10-19 13:04:06')
959
+ 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-10-19 13:04:06', '2013-10-19 13:04:06')
960
+ 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-10-19 13:04:06', '2013-10-19 13:04:06')
961
+ 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-10-19 13:04:06', '2013-10-19 13:04:06')
962
+ 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-10-19 13:04:06', '2013-10-19 13:04:06')
963
+  (293.0ms) commit transaction
964
+  (0.1ms) begin transaction
965
+ -----------------------------------------------------
966
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
967
+ -----------------------------------------------------
968
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x00000003c08ae8>
969
+  (0.2ms) rollback transaction
970
+  (0.5ms) begin transaction
971
+ Fixture Delete (0.2ms) DELETE FROM "authors"
972
+ Fixture Insert (0.2ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:26:08', '2013-10-19 13:26:08')
973
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 13:26:08', '2013-10-19 13:26:08')
974
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:26:08', '2013-10-19 13:26:08')
975
+ Fixture Delete (0.1ms) DELETE FROM "posts"
976
+ 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-10-19 13:26:08', '2013-10-19 13:26:08')
977
+ 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-10-19 13:26:08', '2013-10-19 13:26:08')
978
+ 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-10-19 13:26:08', '2013-10-19 13:26:08')
979
+ 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-10-19 13:26:08', '2013-10-19 13:26:08')
980
+ 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-10-19 13:26:08', '2013-10-19 13:26:08')
981
+ 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-10-19 13:26:08', '2013-10-19 13:26:08')
982
+ 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-10-19 13:26:08', '2013-10-19 13:26:08')
983
+ 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-10-19 13:26:08', '2013-10-19 13:26:08')
984
+ 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-10-19 13:26:08', '2013-10-19 13:26:08')
985
+ 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-10-19 13:26:08', '2013-10-19 13:26:08')
986
+ 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-10-19 13:26:08', '2013-10-19 13:26:08')
987
+  (653.3ms) commit transaction
988
+  (0.1ms) begin transaction
989
+ -----------------------------------------------------
990
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
991
+ -----------------------------------------------------
992
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x000000028d11c8>
993
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x000000048f9928>
994
+  (0.2ms) rollback transaction
995
+  (0.2ms) begin transaction
996
+ Fixture Delete (0.1ms) DELETE FROM "authors"
997
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:28:16', '2013-10-19 13:28:16')
998
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 13:28:16', '2013-10-19 13:28:16')
999
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:28:16', '2013-10-19 13:28:16')
1000
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1001
+ 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-10-19 13:28:16', '2013-10-19 13:28:16')
1002
+ 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-10-19 13:28:16', '2013-10-19 13:28:16')
1003
+ 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-10-19 13:28:16', '2013-10-19 13:28:16')
1004
+ 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-10-19 13:28:16', '2013-10-19 13:28:16')
1005
+ 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-10-19 13:28:16', '2013-10-19 13:28:16')
1006
+ 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-10-19 13:28:16', '2013-10-19 13:28:16')
1007
+ 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-10-19 13:28:16', '2013-10-19 13:28:16')
1008
+ 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-10-19 13:28:16', '2013-10-19 13:28:16')
1009
+ 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-10-19 13:28:16', '2013-10-19 13:28:16')
1010
+ 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-10-19 13:28:16', '2013-10-19 13:28:16')
1011
+ 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-10-19 13:28:16', '2013-10-19 13:28:16')
1012
+  (323.6ms) commit transaction
1013
+  (0.1ms) begin transaction
1014
+ -----------------------------------------------------
1015
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
1016
+ -----------------------------------------------------
1017
+  (0.2ms) rollback transaction
1018
+  (0.3ms) begin transaction
1019
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1020
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:29:40', '2013-10-19 13:29:40')
1021
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 13:29:40', '2013-10-19 13:29:40')
1022
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:29:40', '2013-10-19 13:29:40')
1023
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1024
+ 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-10-19 13:29:40', '2013-10-19 13:29:40')
1025
+ 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-10-19 13:29:40', '2013-10-19 13:29:40')
1026
+ 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-10-19 13:29:40', '2013-10-19 13:29:40')
1027
+ 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-10-19 13:29:40', '2013-10-19 13:29:40')
1028
+ 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-10-19 13:29:40', '2013-10-19 13:29:40')
1029
+ 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-10-19 13:29:40', '2013-10-19 13:29:40')
1030
+ 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-10-19 13:29:40', '2013-10-19 13:29:40')
1031
+ 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-10-19 13:29:40', '2013-10-19 13:29:40')
1032
+ 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-10-19 13:29:40', '2013-10-19 13:29:40')
1033
+ 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-10-19 13:29:40', '2013-10-19 13:29:40')
1034
+ 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-10-19 13:29:40', '2013-10-19 13:29:40')
1035
+  (280.3ms) commit transaction
1036
+  (0.1ms) begin transaction
1037
+ -----------------------------------------------------
1038
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
1039
+ -----------------------------------------------------
1040
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x0000000245f630>
1041
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x000000024bfaa8>
1042
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x00000002540d88>
1043
+  (0.2ms) rollback transaction
1044
+  (0.3ms) begin transaction
1045
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1046
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:36:49', '2013-10-19 13:36:49')
1047
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 13:36:49', '2013-10-19 13:36:49')
1048
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:36:49', '2013-10-19 13:36:49')
1049
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1050
+ 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-10-19 13:36:49', '2013-10-19 13:36:49')
1051
+ 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-10-19 13:36:49', '2013-10-19 13:36:49')
1052
+ 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-10-19 13:36:49', '2013-10-19 13:36:49')
1053
+ 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-10-19 13:36:49', '2013-10-19 13:36:49')
1054
+ 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-10-19 13:36:49', '2013-10-19 13:36:49')
1055
+ 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-10-19 13:36:49', '2013-10-19 13:36:49')
1056
+ 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-10-19 13:36:49', '2013-10-19 13:36:49')
1057
+ 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-10-19 13:36:49', '2013-10-19 13:36:49')
1058
+ 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-10-19 13:36:49', '2013-10-19 13:36:49')
1059
+ 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-10-19 13:36:49', '2013-10-19 13:36:49')
1060
+ 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-10-19 13:36:49', '2013-10-19 13:36:49')
1061
+  (313.8ms) commit transaction
1062
+  (0.0ms) begin transaction
1063
+ -----------------------------------------------------
1064
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
1065
+ -----------------------------------------------------
1066
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x000000032dbce0>
1067
+  (0.2ms) rollback transaction
1068
+  (0.3ms) begin transaction
1069
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1070
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:40:52', '2013-10-19 13:40:52')
1071
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 13:40:52', '2013-10-19 13:40:52')
1072
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:40:52', '2013-10-19 13:40:52')
1073
+ Fixture Delete (0.1ms) DELETE FROM "posts"
1074
+ 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-10-19 13:40:52', '2013-10-19 13:40:52')
1075
+ 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-10-19 13:40:52', '2013-10-19 13:40:52')
1076
+ 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-10-19 13:40:52', '2013-10-19 13:40:52')
1077
+ 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-10-19 13:40:52', '2013-10-19 13:40:52')
1078
+ 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-10-19 13:40:52', '2013-10-19 13:40:52')
1079
+ 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-10-19 13:40:52', '2013-10-19 13:40:52')
1080
+ 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-10-19 13:40:52', '2013-10-19 13:40:52')
1081
+ 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-10-19 13:40:52', '2013-10-19 13:40:52')
1082
+ 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-10-19 13:40:52', '2013-10-19 13:40:52')
1083
+ 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-10-19 13:40:52', '2013-10-19 13:40:52')
1084
+ 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-10-19 13:40:52', '2013-10-19 13:40:52')
1085
+  (271.5ms) commit transaction
1086
+  (0.1ms) begin transaction
1087
+ -----------------------------------------------------
1088
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
1089
+ -----------------------------------------------------
1090
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x0000000399c980>
1091
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x00000003a13418>
1092
+  (0.1ms) rollback transaction
1093
+  (0.3ms) begin transaction
1094
+ Fixture Delete (0.4ms) DELETE FROM "authors"
1095
+ Fixture Insert (0.2ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:42:02', '2013-10-19 13:42:02')
1096
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 13:42:02', '2013-10-19 13:42:02')
1097
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:42:02', '2013-10-19 13:42:02')
1098
+ Fixture Delete (0.2ms) DELETE FROM "posts"
1099
+ Fixture Insert (0.2ms) 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-10-19 13:42:26', '2013-10-19 13:42:26')
1100
+ 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-10-19 13:42:26', '2013-10-19 13:42:26')
1101
+ 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-10-19 13:42:26', '2013-10-19 13:42:26')
1102
+ 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-10-19 13:42:26', '2013-10-19 13:42:26')
1103
+ 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-10-19 13:42:26', '2013-10-19 13:42:26')
1104
+ 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-10-19 13:42:26', '2013-10-19 13:42:26')
1105
+ 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-10-19 13:42:26', '2013-10-19 13:42:26')
1106
+ 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-10-19 13:42:26', '2013-10-19 13:42:26')
1107
+ 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-10-19 13:42:26', '2013-10-19 13:42:26')
1108
+ 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-10-19 13:42:26', '2013-10-19 13:42:26')
1109
+ 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-10-19 13:42:26', '2013-10-19 13:42:26')
1110
+  (334.9ms) commit transaction
1111
+  (0.1ms) begin transaction
1112
+ -----------------------------------------------------
1113
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
1114
+ -----------------------------------------------------
1115
+  (0.1ms) rollback transaction
1116
+  (0.3ms) begin transaction
1117
+ Fixture Delete (0.4ms) DELETE FROM "authors"
1118
+ Fixture Insert (0.2ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:43:22', '2013-10-19 13:43:22')
1119
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 13:43:22', '2013-10-19 13:43:22')
1120
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:43:22', '2013-10-19 13:43:22')
1121
+ Fixture Delete (0.2ms) DELETE FROM "posts"
1122
+ 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-10-19 13:43:29', '2013-10-19 13:43:29')
1123
+ 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-10-19 13:43:29', '2013-10-19 13:43:29')
1124
+ 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-10-19 13:43:29', '2013-10-19 13:43:29')
1125
+ 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-10-19 13:43:29', '2013-10-19 13:43:29')
1126
+ 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-10-19 13:43:29', '2013-10-19 13:43:29')
1127
+ 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-10-19 13:43:29', '2013-10-19 13:43:29')
1128
+ 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-10-19 13:43:29', '2013-10-19 13:43:29')
1129
+ 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-10-19 13:43:29', '2013-10-19 13:43:29')
1130
+ 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-10-19 13:43:29', '2013-10-19 13:43:29')
1131
+ 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-10-19 13:43:29', '2013-10-19 13:43:29')
1132
+ 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-10-19 13:43:29', '2013-10-19 13:43:29')
1133
+  (295.4ms) commit transaction
1134
+  (0.1ms) begin transaction
1135
+ -----------------------------------------------------
1136
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
1137
+ -----------------------------------------------------
1138
+ Could not log "sql.active_record" event. NoMethodError: undefined method `squeeze' for #<Arel::Nodes::Union:0x000000038030d8> ["/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/log_subscriber.rb:44:in `sql'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/subscriber.rb:68:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/log_subscriber.rb:83:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:96:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `block in finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `each'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:36:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:25:in `ensure in instrument'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:25:in `instrument'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:420:in `log'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:505:in `select'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:24:in `select_all'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/querying.rb:36:in `find_by_sql'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:585:in `exec_queries'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:471:in `load'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:220:in `to_a'", "/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:84:in `block in <class:ActiverecordAnyOfTest>'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1258:in `run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:933:in `block in _run_suite'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:926:in `map'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:926:in `_run_suite'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `block in _run_suites'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `map'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `_run_suites'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:877:in `_run_anything'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1085:in `run_tests'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1072:in `block in _run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `each'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `_run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1059:in `run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:795:in `block in autorun'"]
1139
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x000000038030d8>
1140
+  (0.2ms) rollback transaction
1141
+  (0.3ms) begin transaction
1142
+ Fixture Delete (0.4ms) DELETE FROM "authors"
1143
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:52:57', '2013-10-19 13:52:57')
1144
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 13:52:57', '2013-10-19 13:52:57')
1145
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:52:57', '2013-10-19 13:52:57')
1146
+ Fixture Delete (0.2ms) DELETE FROM "posts"
1147
+ 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-10-19 13:53:15', '2013-10-19 13:53:15')
1148
+ 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-10-19 13:53:15', '2013-10-19 13:53:15')
1149
+ 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-10-19 13:53:15', '2013-10-19 13:53:15')
1150
+ 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-10-19 13:53:15', '2013-10-19 13:53:15')
1151
+ 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-10-19 13:53:15', '2013-10-19 13:53:15')
1152
+ 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-10-19 13:53:15', '2013-10-19 13:53:15')
1153
+ 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-10-19 13:53:15', '2013-10-19 13:53:15')
1154
+ 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-10-19 13:53:15', '2013-10-19 13:53:15')
1155
+ 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-10-19 13:53:15', '2013-10-19 13:53:15')
1156
+ 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-10-19 13:53:15', '2013-10-19 13:53:15')
1157
+ 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-10-19 13:53:15', '2013-10-19 13:53:15')
1158
+  (329.3ms) commit transaction
1159
+  (0.1ms) begin transaction
1160
+ -----------------------------------------------------
1161
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
1162
+ -----------------------------------------------------
1163
+ Could not log "sql.active_record" event. NoMethodError: undefined method `squeeze' for #<Arel::Nodes::Union:0x0000000312da60> ["/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/log_subscriber.rb:44:in `sql'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/subscriber.rb:68:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/log_subscriber.rb:83:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:96:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `block in finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `each'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:36:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:25:in `ensure in instrument'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:25:in `instrument'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:420:in `log'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:505:in `select'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:24:in `select_all'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/querying.rb:36:in `find_by_sql'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:585:in `exec_queries'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:471:in `load'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:220:in `to_a'", "/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:84:in `block in <class:ActiverecordAnyOfTest>'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1258:in `run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:933:in `block in _run_suite'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:926:in `map'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:926:in `_run_suite'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `block in _run_suites'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `map'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `_run_suites'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:877:in `_run_anything'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1085:in `run_tests'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1072:in `block in _run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `each'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `_run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1059:in `run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:795:in `block in autorun'"]
1164
+ TypeError: no implicit conversion of Arel::Nodes::Union into String: #<Arel::Nodes::Union:0x0000000312da60>
1165
+  (0.2ms) rollback transaction
1166
+  (0.3ms) begin transaction
1167
+  (0.2ms) rollback transaction
1168
+  (0.3ms) begin transaction
1169
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1170
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 14:00:04', '2013-10-19 14:00:04')
1171
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 14:00:04', '2013-10-19 14:00:04')
1172
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 14:00:04', '2013-10-19 14:00:04')
1173
+ Fixture Delete (0.1ms) DELETE FROM "posts"
1174
+ 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-10-19 14:00:04', '2013-10-19 14:00:04')
1175
+ 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-10-19 14:00:04', '2013-10-19 14:00:04')
1176
+ 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-10-19 14:00:04', '2013-10-19 14:00:04')
1177
+ 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-10-19 14:00:04', '2013-10-19 14:00:04')
1178
+ 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-10-19 14:00:04', '2013-10-19 14:00:04')
1179
+ 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-10-19 14:00:04', '2013-10-19 14:00:04')
1180
+ 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-10-19 14:00:04', '2013-10-19 14:00:04')
1181
+ 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-10-19 14:00:04', '2013-10-19 14:00:04')
1182
+ 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-10-19 14:00:04', '2013-10-19 14:00:04')
1183
+ 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-10-19 14:00:04', '2013-10-19 14:00:04')
1184
+ 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-10-19 14:00:04', '2013-10-19 14:00:04')
1185
+  (334.5ms) commit transaction
1186
+  (0.1ms) begin transaction
1187
+ -----------------------------------------------------
1188
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
1189
+ -----------------------------------------------------
1190
+ Could not log "sql.active_record" event. NoMethodError: undefined method `squeeze' for nil:NilClass ["/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/log_subscriber.rb:44:in `sql'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/subscriber.rb:68:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/log_subscriber.rb:83:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:96:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `block in finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `each'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:36:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:25:in `ensure in instrument'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:25:in `instrument'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:420:in `log'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:292:in `exec_query'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:504:in `select'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:24:in `select_all'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/querying.rb:36:in `find_by_sql'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:585:in `exec_queries'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:471:in `load'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:220:in `to_a'", "/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:84:in `block in <class:ActiverecordAnyOfTest>'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1258:in `run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:933:in `block in _run_suite'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:926:in `map'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:926:in `_run_suite'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `block in _run_suites'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `map'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `_run_suites'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:877:in `_run_anything'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1085:in `run_tests'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1072:in `block in _run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `each'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `_run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1059:in `run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:795:in `block in autorun'"]
1191
+ TypeError: no implicit conversion of nil into String:
1192
+  (0.0ms) rollback transaction
1193
+  (0.3ms) begin transaction
1194
+ Fixture Delete (0.4ms) DELETE FROM "authors"
1195
+ Fixture Insert (0.2ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 14:00:54', '2013-10-19 14:00:54')
1196
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 14:00:54', '2013-10-19 14:00:54')
1197
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 14:00:54', '2013-10-19 14:00:54')
1198
+ Fixture Delete (0.2ms) DELETE FROM "posts"
1199
+ 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-10-19 14:01:09', '2013-10-19 14:01:09')
1200
+ 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-10-19 14:01:09', '2013-10-19 14:01:09')
1201
+ 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-10-19 14:01:09', '2013-10-19 14:01:09')
1202
+ 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-10-19 14:01:09', '2013-10-19 14:01:09')
1203
+ 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-10-19 14:01:09', '2013-10-19 14:01:09')
1204
+ 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-10-19 14:01:09', '2013-10-19 14:01:09')
1205
+ 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-10-19 14:01:09', '2013-10-19 14:01:09')
1206
+ 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-10-19 14:01:09', '2013-10-19 14:01:09')
1207
+ 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-10-19 14:01:09', '2013-10-19 14:01:09')
1208
+ 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-10-19 14:01:09', '2013-10-19 14:01:09')
1209
+ 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-10-19 14:01:09', '2013-10-19 14:01:09')
1210
+  (302.5ms) commit transaction
1211
+  (0.1ms) begin transaction
1212
+ -----------------------------------------------------
1213
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
1214
+ -----------------------------------------------------
1215
+ Could not log "sql.active_record" event. NoMethodError: undefined method `squeeze' for nil:NilClass ["/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/log_subscriber.rb:44:in `sql'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/subscriber.rb:68:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/log_subscriber.rb:83:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:96:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `block in finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `each'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:36:in `finish'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:25:in `ensure in instrument'", "/home/kik/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:25:in `instrument'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:420:in `log'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:505:in `select'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:24:in `select_all'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/querying.rb:36:in `find_by_sql'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:585:in `exec_queries'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:471:in `load'", "/home/kik/.gem/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation.rb:220:in `to_a'", "/mnt/data/home/kik/code/rails/activerecord_any_of/test/activerecord_any_of_test.rb:84:in `block in <class:ActiverecordAnyOfTest>'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1258:in `run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:933:in `block in _run_suite'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:926:in `map'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:926:in `_run_suite'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `block in _run_suites'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `map'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/parallel_each.rb:71:in `_run_suites'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:877:in `_run_anything'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1085:in `run_tests'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1072:in `block in _run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `each'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1071:in `_run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1059:in `run'", "/home/kik/.gem/ruby/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:795:in `block in autorun'"]
1216
+ TypeError: no implicit conversion of nil into String:
1217
+  (0.1ms) rollback transaction
1218
+  (0.3ms) begin transaction
1219
+ Fixture Delete (0.7ms) DELETE FROM "authors"
1220
+ Fixture Insert (0.2ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 14:02:39', '2013-10-19 14:02:39')
1221
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 14:02:39', '2013-10-19 14:02:39')
1222
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 14:02:39', '2013-10-19 14:02:39')
1223
+ Fixture Delete (0.2ms) DELETE FROM "posts"
1224
+ 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-10-19 14:02:47', '2013-10-19 14:02:47')
1225
+ 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-10-19 14:02:47', '2013-10-19 14:02:47')
1226
+ 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-10-19 14:02:47', '2013-10-19 14:02:47')
1227
+ 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-10-19 14:02:47', '2013-10-19 14:02:47')
1228
+ 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-10-19 14:02:47', '2013-10-19 14:02:47')
1229
+ 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-10-19 14:02:47', '2013-10-19 14:02:47')
1230
+ 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-10-19 14:02:47', '2013-10-19 14:02:47')
1231
+ 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-10-19 14:02:47', '2013-10-19 14:02:47')
1232
+ 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-10-19 14:02:47', '2013-10-19 14:02:47')
1233
+ 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-10-19 14:02:47', '2013-10-19 14:02:47')
1234
+ 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-10-19 14:02:47', '2013-10-19 14:02:47')
1235
+  (299.5ms) commit transaction
1236
+  (0.2ms) begin transaction
1237
+ -----------------------------------------------------
1238
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
1239
+ -----------------------------------------------------
1240
+ Post Load (0.2ms) ( SELECT "posts".* FROM "posts" GROUP BY type UNION SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 )
1241
+ SQLite3::SQLException: near "(": syntax error: ( SELECT "posts".* FROM "posts" GROUP BY type UNION SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 )
1242
+  (0.1ms) rollback transaction
1243
+  (0.3ms) begin transaction
1244
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1245
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 14:05:33', '2013-10-19 14:05:33')
1246
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-10-19 14:05:33', '2013-10-19 14:05:33')
1247
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 14:05:33', '2013-10-19 14:05:33')
1248
+ Fixture Delete (0.1ms) DELETE FROM "posts"
1249
+ 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-10-19 14:05:33', '2013-10-19 14:05:33')
1250
+ 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-10-19 14:05:33', '2013-10-19 14:05:33')
1251
+ 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-10-19 14:05:33', '2013-10-19 14:05:33')
1252
+ 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-10-19 14:05:33', '2013-10-19 14:05:33')
1253
+ 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-10-19 14:05:33', '2013-10-19 14:05:33')
1254
+ 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-10-19 14:05:33', '2013-10-19 14:05:33')
1255
+ 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-10-19 14:05:33', '2013-10-19 14:05:33')
1256
+ 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-10-19 14:05:33', '2013-10-19 14:05:33')
1257
+ 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-10-19 14:05:33', '2013-10-19 14:05:33')
1258
+ 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-10-19 14:05:33', '2013-10-19 14:05:33')
1259
+ 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-10-19 14:05:33', '2013-10-19 14:05:33')
1260
+  (334.4ms) commit transaction
1261
+  (0.1ms) begin transaction
1262
+ -----------------------------------------------------
1263
+ ActiverecordAnyOfTest: test_finding_with_groups_focus
1264
+ -----------------------------------------------------
1265
+ SQLite3::SQLException: near "(": syntax error: ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 UNION SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 )
1266
+ SQLite3::SQLException: no such table: posts: select posts.* from ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 UNION SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 )
1267
+ SQLite3::SQLException: near "(": syntax error: ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 ) UNION ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 )
1268
+ SQLite3::SQLException: near "(": syntax error: ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 limit 2 ) UNION ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 limit 1)
1269
+ SQLite3::SQLException: LIMIT clause should come after UNION not before: SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 limit 2 UNION SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 limit 1
1270
+ SQLite3::SQLException: near "(": syntax error: ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 LIMIT 2 ) UNION ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 3 LIMIT 2 )
1271
+ SQLite3::SQLException: near "(": syntax error: select * ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 LIMIT 2 ) UNION ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 3 LIMIT 2 )
1272
+ SQLite3::SQLException: near "in": syntax error: select * in ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 LIMIT 2 ) UNION ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 3 LIMIT 2 )
1273
+ SQLite3::SQLException: near "(": syntax error: select * from ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 LIMIT 2 ) UNION ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 3 LIMIT 2 )
1274
+ SQLite3::SQLException: near "(": syntax error: select ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 LIMIT 2 ) UNION ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 3 LIMIT 2 )
1275
+ SQLite3::SQLException: near "SELECT": syntax error: select SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 LIMIT 2 ) UNION ( SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 3 LIMIT 2 )
1276
+ Post Load (0.2ms) ( SELECT "posts".* FROM "posts" GROUP BY type UNION SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 )
1277
+ SQLite3::SQLException: near "(": syntax error: ( SELECT "posts".* FROM "posts" GROUP BY type UNION SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 )
1278
+  (0.2ms) rollback transaction
1279
+  (0.6ms) begin transaction
1280
+ Fixture Delete (21.9ms) DELETE FROM "authors"
1281
+ Fixture Insert (0.2ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-11-03 12:05:10', '2013-11-03 12:05:10')
1282
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-11-03 12:05:10', '2013-11-03 12:05:10')
1283
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-11-03 12:05:10', '2013-11-03 12:05:10')
1284
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1285
+ 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-11-03 12:05:10', '2013-11-03 12:05:10')
1286
+ 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-11-03 12:05:10', '2013-11-03 12:05:10')
1287
+ 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-11-03 12:05:10', '2013-11-03 12:05:10')
1288
+ 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-11-03 12:05:10', '2013-11-03 12:05:10')
1289
+ 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-11-03 12:05:10', '2013-11-03 12:05:10')
1290
+ 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-11-03 12:05:10', '2013-11-03 12:05:10')
1291
+ 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-11-03 12:05:10', '2013-11-03 12:05:10')
1292
+ 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-11-03 12:05:10', '2013-11-03 12:05:10')
1293
+ 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-11-03 12:05:10', '2013-11-03 12:05:10')
1294
+ 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-11-03 12:05:10', '2013-11-03 12:05:10')
1295
+ 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-11-03 12:05:10', '2013-11-03 12:05:10')
1296
+  (278.9ms) commit transaction
1297
+  (0.1ms) begin transaction
1298
+ ------------------------------------------------------------------------
1299
+ ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
1300
+ ------------------------------------------------------------------------
1301
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
1302
+  (0.0ms) rollback transaction
1303
+  (0.0ms) begin transaction
1304
+ --------------------------------------------------------------------------------------
1305
+ ActiverecordAnyOfTest: test_calling_#any_of_with_a_single_Hash_as_parameter_expands_it
1306
+ --------------------------------------------------------------------------------------
1307
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ("authors"."name" = 'David' AND "authors"."id" = 2)
1308
+  (0.1ms) rollback transaction
1309
+  (0.1ms) begin transaction
1310
+ ----------------------------------------------------------------------------
1311
+ ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
1312
+ ----------------------------------------------------------------------------
1313
+  (0.0ms) rollback transaction
1314
+  (0.1ms) begin transaction
1315
+ -----------------------------------------------------------------------------
1316
+ ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
1317
+ -----------------------------------------------------------------------------
1318
+  (0.0ms) rollback transaction
1319
+  (0.1ms) begin transaction
1320
+ -----------------------------------------------------------------------------
1321
+ ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
1322
+ -----------------------------------------------------------------------------
1323
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
1324
+  (0.0ms) rollback transaction
1325
+  (0.1ms) begin transaction
1326
+ -----------------------------------------------------------------------------
1327
+ ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
1328
+ -----------------------------------------------------------------------------
1329
+ Author Load (0.2ms) 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'))
1330
+ SQL (0.2ms) 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'))
1331
+  (0.1ms) rollback transaction
1332
+  (0.0ms) begin transaction
1333
+ -------------------------------------------------------------
1334
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions
1335
+ -------------------------------------------------------------
1336
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
1337
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
1338
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
1339
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
1340
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
1341
+  (0.0ms) rollback transaction
1342
+  (0.0ms) begin transaction
1343
+ ----------------------------------------------------------------------------
1344
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
1345
+ ----------------------------------------------------------------------------
1346
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
1347
+ 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]]
1348
+  (0.0ms) rollback transaction
1349
+  (0.0ms) begin transaction
1350
+ ----------------------------------------------------------------------
1351
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
1352
+ ----------------------------------------------------------------------
1353
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
1354
+  (0.0ms) rollback transaction
1355
+  (0.0ms) begin transaction
1356
+ -------------------------------------------------------------------------------------
1357
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
1358
+ -------------------------------------------------------------------------------------
1359
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
1360
+ 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]]
1361
+  (0.0ms) rollback transaction
1362
+  (0.3ms) begin transaction
1363
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1364
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-11-03 12:08:47', '2013-11-03 12:08:47')
1365
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-11-03 12:08:47', '2013-11-03 12:08:47')
1366
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-11-03 12:08:47', '2013-11-03 12:08:47')
1367
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1368
+ 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-11-03 12:08:47', '2013-11-03 12:08:47')
1369
+ 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-11-03 12:08:47', '2013-11-03 12:08:47')
1370
+ 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-11-03 12:08:47', '2013-11-03 12:08:47')
1371
+ 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-11-03 12:08:47', '2013-11-03 12:08:47')
1372
+ 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-11-03 12:08:47', '2013-11-03 12:08:47')
1373
+ 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-11-03 12:08:47', '2013-11-03 12:08:47')
1374
+ 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-11-03 12:08:47', '2013-11-03 12:08:47')
1375
+ 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-11-03 12:08:47', '2013-11-03 12:08:47')
1376
+ 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-11-03 12:08:47', '2013-11-03 12:08:47')
1377
+ 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-11-03 12:08:47', '2013-11-03 12:08:47')
1378
+ 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-11-03 12:08:47', '2013-11-03 12:08:47')
1379
+  (288.9ms) commit transaction
1380
+  (0.1ms) begin transaction
1381
+ ------------------------------------------------------------------------
1382
+ ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
1383
+ ------------------------------------------------------------------------
1384
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
1385
+  (0.0ms) rollback transaction
1386
+  (0.0ms) begin transaction
1387
+ --------------------------------------------------------------------------------------
1388
+ ActiverecordAnyOfTest: test_calling_#any_of_with_a_single_Hash_as_parameter_expands_it
1389
+ --------------------------------------------------------------------------------------
1390
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."id" = 2))
1391
+  (0.0ms) rollback transaction
1392
+  (0.1ms) begin transaction
1393
+ ----------------------------------------------------------------------------
1394
+ ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
1395
+ ----------------------------------------------------------------------------
1396
+  (0.0ms) rollback transaction
1397
+  (0.0ms) begin transaction
1398
+ -----------------------------------------------------------------------------
1399
+ ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
1400
+ -----------------------------------------------------------------------------
1401
+  (0.0ms) rollback transaction
1402
+  (0.0ms) begin transaction
1403
+ -----------------------------------------------------------------------------
1404
+ ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
1405
+ -----------------------------------------------------------------------------
1406
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
1407
+  (0.0ms) rollback transaction
1408
+  (0.0ms) begin transaction
1409
+ -----------------------------------------------------------------------------
1410
+ ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
1411
+ -----------------------------------------------------------------------------
1412
+ 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'))
1413
+ 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'))
1414
+  (0.1ms) rollback transaction
1415
+  (0.1ms) begin transaction
1416
+ -------------------------------------------------------------
1417
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions
1418
+ -------------------------------------------------------------
1419
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
1420
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
1421
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
1422
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
1423
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
1424
+  (0.0ms) rollback transaction
1425
+  (0.0ms) begin transaction
1426
+ ----------------------------------------------------------------------------
1427
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
1428
+ ----------------------------------------------------------------------------
1429
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
1430
+ 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]]
1431
+  (0.0ms) rollback transaction
1432
+  (0.0ms) begin transaction
1433
+ ----------------------------------------------------------------------
1434
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
1435
+ ----------------------------------------------------------------------
1436
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
1437
+  (0.0ms) rollback transaction
1438
+  (0.0ms) begin transaction
1439
+ -------------------------------------------------------------------------------------
1440
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
1441
+ -------------------------------------------------------------------------------------
1442
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
1443
+ 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]]
1444
+  (0.0ms) rollback transaction
1445
+  (0.3ms) begin transaction
1446
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1447
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-11-03 13:05:33', '2013-11-03 13:05:33')
1448
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-11-03 13:05:33', '2013-11-03 13:05:33')
1449
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-11-03 13:05:33', '2013-11-03 13:05:33')
1450
+ Fixture Delete (0.1ms) DELETE FROM "posts"
1451
+ 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-11-03 13:05:33', '2013-11-03 13:05:33')
1452
+ 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-11-03 13:05:33', '2013-11-03 13:05:33')
1453
+ 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-11-03 13:05:33', '2013-11-03 13:05:33')
1454
+ 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-11-03 13:05:33', '2013-11-03 13:05:33')
1455
+ 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-11-03 13:05:33', '2013-11-03 13:05:33')
1456
+ 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-11-03 13:05:33', '2013-11-03 13:05:33')
1457
+ 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-11-03 13:05:33', '2013-11-03 13:05:33')
1458
+ 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-11-03 13:05:33', '2013-11-03 13:05:33')
1459
+ 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-11-03 13:05:33', '2013-11-03 13:05:33')
1460
+ 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-11-03 13:05:33', '2013-11-03 13:05:33')
1461
+ 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-11-03 13:05:33', '2013-11-03 13:05:33')
1462
+  (284.6ms) commit transaction
1463
+  (0.1ms) begin transaction
1464
+ ------------------------------------------------------------------------
1465
+ ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
1466
+ ------------------------------------------------------------------------
1467
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
1468
+  (0.0ms) rollback transaction
1469
+  (0.1ms) begin transaction
1470
+ --------------------------------------------------------------------------------------
1471
+ ActiverecordAnyOfTest: test_calling_#any_of_with_a_single_Hash_as_parameter_expands_it
1472
+ --------------------------------------------------------------------------------------
1473
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."id" = 2))
1474
+  (0.0ms) rollback transaction
1475
+  (0.0ms) begin transaction
1476
+ ----------------------------------------------------------------------------
1477
+ ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
1478
+ ----------------------------------------------------------------------------
1479
+  (0.0ms) rollback transaction
1480
+  (0.0ms) begin transaction
1481
+ -----------------------------------------------------------------------------
1482
+ ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
1483
+ -----------------------------------------------------------------------------
1484
+  (0.0ms) rollback transaction
1485
+  (0.0ms) begin transaction
1486
+ -----------------------------------------------------------------------------
1487
+ ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
1488
+ -----------------------------------------------------------------------------
1489
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
1490
+  (0.0ms) rollback transaction
1491
+  (0.0ms) begin transaction
1492
+ -----------------------------------------------------------------------------
1493
+ ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
1494
+ -----------------------------------------------------------------------------
1495
+ 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'))
1496
+ 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'))
1497
+  (0.1ms) rollback transaction
1498
+  (0.1ms) begin transaction
1499
+ -------------------------------------------------------------
1500
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions
1501
+ -------------------------------------------------------------
1502
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
1503
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
1504
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
1505
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
1506
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
1507
+  (0.0ms) rollback transaction
1508
+  (0.0ms) begin transaction
1509
+ ----------------------------------------------------------------------------
1510
+ ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
1511
+ ----------------------------------------------------------------------------
1512
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
1513
+ 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]]
1514
+  (0.0ms) rollback transaction
1515
+  (0.0ms) begin transaction
1516
+ ----------------------------------------------------------------------
1517
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
1518
+ ----------------------------------------------------------------------
1519
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
1520
+  (0.0ms) rollback transaction
1521
+  (0.0ms) begin transaction
1522
+ -------------------------------------------------------------------------------------
1523
+ ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
1524
+ -------------------------------------------------------------------------------------
1525
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
1526
+ 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]]
1527
+  (0.0ms) rollback transaction