activerecord_any_of 1.1 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +98 -10
- data/lib/activerecord_any_of/alternative_builder.rb +4 -0
- data/lib/activerecord_any_of/version.rb +1 -1
- data/lib/activerecord_any_of.rb +20 -7
- data/test/activerecord_any_of_test.rb +4 -0
- data/test/dummy_rails4/db/test.sqlite3 +0 -0
- data/test/dummy_rails4/log/test.log +1090 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5047c28acc2012bdd8941d946180d5587354567b
|
4
|
+
data.tar.gz: fb3a7ec4a6a999b8c7b5877ee3317bdcd9a37912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 723692244e87973207876e3b0e065c3ebe11f461f58b463a2270410fe6ece1cc2925a9ef3ee44b1f54a424f1cddba2cd5b15a8556fe43720541e2176a4c9e9f5
|
7
|
+
data.tar.gz: e4e673618cb1354433b5e374ecc966464a63b0b770a64931fa80216a494a9f8460b3f8f0a95754969a17f1c4710bd5941c7158eee816fc359467ec7707ff11ef
|
data/README.md
CHANGED
@@ -1,30 +1,118 @@
|
|
1
1
|
# ActiverecordAnyOf
|
2
2
|
|
3
|
-
|
3
|
+
## A note for < 1.2 users
|
4
4
|
|
5
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
|
data/lib/activerecord_any_of.rb
CHANGED
@@ -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
|
-
#
|
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
|
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
|
436
436
|
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m [["author_id", 1]]
|
437
437
|
[1m[35m (0.0ms)[0m rollback transaction
|
438
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
439
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
440
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 10:03:32', '2013-10-19 10:03:32')[0m
|
441
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 10:03:32', '2013-10-19 10:03:32')[0m
|
443
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
444
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 10:03:32', '2013-10-19 10:03:32')[0m
|
445
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 10:03:32', '2013-10-19 10:03:32')
|
446
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 10:03:32', '2013-10-19 10:03:32')[0m
|
447
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 10:03:32', '2013-10-19 10:03:32')
|
448
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 10:03:32', '2013-10-19 10:03:32')[0m
|
449
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 10:03:32', '2013-10-19 10:03:32')
|
450
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 10:03:32', '2013-10-19 10:03:32')[0m
|
451
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 10:03:32', '2013-10-19 10:03:32')
|
452
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 10:03:32', '2013-10-19 10:03:32')[0m
|
453
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 10:03:32', '2013-10-19 10:03:32')
|
454
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 10:03:32', '2013-10-19 10:03:32')[0m
|
455
|
+
[1m[35m (322.4ms)[0m commit transaction
|
456
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
457
|
+
------------------------------------------------------------------------
|
458
|
+
ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
|
459
|
+
------------------------------------------------------------------------
|
460
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
461
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
462
|
+
[1m[35m (0.1ms)[0m begin transaction
|
463
|
+
----------------------------------------------------------------------------
|
464
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
|
465
|
+
----------------------------------------------------------------------------
|
466
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
467
|
+
[1m[35m (0.0ms)[0m begin transaction
|
468
|
+
-----------------------------------------------------------------------------
|
469
|
+
ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
|
470
|
+
-----------------------------------------------------------------------------
|
471
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
472
|
+
[1m[35m (0.0ms)[0m begin transaction
|
473
|
+
-----------------------------------------------------------------------------
|
474
|
+
ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
|
475
|
+
-----------------------------------------------------------------------------
|
476
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
477
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
478
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
479
|
+
-----------------------------------------------------------------------------
|
480
|
+
ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
|
481
|
+
-----------------------------------------------------------------------------
|
482
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
483
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
484
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
485
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
486
|
+
-------------------------------------------------------------
|
487
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions
|
488
|
+
-------------------------------------------------------------
|
489
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
490
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
491
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
492
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))[0m
|
493
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
|
494
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
495
|
+
[1m[35m (0.0ms)[0m begin transaction
|
496
|
+
----------------------------------------------------------------------------
|
497
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
|
498
|
+
----------------------------------------------------------------------------
|
499
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1[0m
|
500
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')) [["author_id", 1]]
|
501
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
502
|
+
[1m[35m (0.1ms)[0m begin transaction
|
503
|
+
----------------------------------------------------------------------
|
504
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
|
505
|
+
----------------------------------------------------------------------
|
506
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))[0m
|
507
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
508
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
509
|
+
-------------------------------------------------------------------------------------
|
510
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
|
511
|
+
-------------------------------------------------------------------------------------
|
512
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
|
513
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m [["author_id", 1]]
|
514
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
515
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
516
|
+
-----------------------------------------------
|
517
|
+
ActiverecordAnyOfTest: test_finding_with_groups
|
518
|
+
-----------------------------------------------
|
519
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
520
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
521
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
522
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 10:03:55', '2013-10-19 10:03:55')[0m
|
523
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 10:03:55', '2013-10-19 10:03:55')[0m
|
525
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
526
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 10:03:55', '2013-10-19 10:03:55')[0m
|
527
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 10:03:55', '2013-10-19 10:03:55')
|
528
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 10:03:55', '2013-10-19 10:03:55')[0m
|
529
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 10:03:55', '2013-10-19 10:03:55')
|
530
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 10:03:55', '2013-10-19 10:03:55')[0m
|
531
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 10:03:55', '2013-10-19 10:03:55')
|
532
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 10:03:55', '2013-10-19 10:03:55')[0m
|
533
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 10:03:55', '2013-10-19 10:03:55')
|
534
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 10:03:55', '2013-10-19 10:03:55')[0m
|
535
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 10:03:55', '2013-10-19 10:03:55')
|
536
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 10:03:55', '2013-10-19 10:03:55')[0m
|
537
|
+
[1m[35m (342.9ms)[0m commit transaction
|
538
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
539
|
+
------------------------------------------------------------------------
|
540
|
+
ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
|
541
|
+
------------------------------------------------------------------------
|
542
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
543
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
544
|
+
[1m[35m (0.1ms)[0m begin transaction
|
545
|
+
----------------------------------------------------------------------------
|
546
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
|
547
|
+
----------------------------------------------------------------------------
|
548
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
549
|
+
[1m[35m (0.0ms)[0m begin transaction
|
550
|
+
-----------------------------------------------------------------------------
|
551
|
+
ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
|
552
|
+
-----------------------------------------------------------------------------
|
553
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
554
|
+
[1m[35m (0.0ms)[0m begin transaction
|
555
|
+
-----------------------------------------------------------------------------
|
556
|
+
ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
|
557
|
+
-----------------------------------------------------------------------------
|
558
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
559
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
560
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
561
|
+
-----------------------------------------------------------------------------
|
562
|
+
ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
|
563
|
+
-----------------------------------------------------------------------------
|
564
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
565
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
566
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
567
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
568
|
+
-------------------------------------------------------------
|
569
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions
|
570
|
+
-------------------------------------------------------------
|
571
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
572
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
573
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
574
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))[0m
|
575
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))
|
576
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
577
|
+
[1m[35m (0.0ms)[0m begin transaction
|
578
|
+
----------------------------------------------------------------------------
|
579
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
|
580
|
+
----------------------------------------------------------------------------
|
581
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1[0m
|
582
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')) [["author_id", 1]]
|
583
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
584
|
+
[1m[35m (0.0ms)[0m begin transaction
|
585
|
+
----------------------------------------------------------------------
|
586
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
|
587
|
+
----------------------------------------------------------------------
|
588
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))[0m
|
589
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
590
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
591
|
+
-------------------------------------------------------------------------------------
|
592
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
|
593
|
+
-------------------------------------------------------------------------------------
|
594
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
|
595
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m [["author_id", 1]]
|
596
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
597
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
598
|
+
-----------------------------------------------
|
599
|
+
ActiverecordAnyOfTest: test_finding_with_groups
|
600
|
+
-----------------------------------------------
|
601
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
602
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
603
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
604
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 10:10:47', '2013-10-19 10:10:47')[0m
|
605
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 10:10:47', '2013-10-19 10:10:47')[0m
|
607
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
608
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 10:10:47', '2013-10-19 10:10:47')[0m
|
609
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 10:10:47', '2013-10-19 10:10:47')
|
610
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 10:10:47', '2013-10-19 10:10:47')[0m
|
611
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 10:10:47', '2013-10-19 10:10:47')
|
612
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 10:10:47', '2013-10-19 10:10:47')[0m
|
613
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 10:10:47', '2013-10-19 10:10:47')
|
614
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 10:10:47', '2013-10-19 10:10:47')[0m
|
615
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 10:10:47', '2013-10-19 10:10:47')
|
616
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 10:10:47', '2013-10-19 10:10:47')[0m
|
617
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 10:10:47', '2013-10-19 10:10:47')
|
618
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 10:10:47', '2013-10-19 10:10:47')[0m
|
619
|
+
[1m[35m (318.0ms)[0m commit transaction
|
620
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
621
|
+
------------------------------------------------------------------------
|
622
|
+
ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
|
623
|
+
------------------------------------------------------------------------
|
624
|
+
[1m[36mAuthor Load (0.3ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))[0m
|
625
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
626
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
627
|
+
----------------------------------------------------------------------------
|
628
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
|
629
|
+
----------------------------------------------------------------------------
|
630
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
631
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
632
|
+
-----------------------------------------------------------------------------
|
633
|
+
ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
|
634
|
+
-----------------------------------------------------------------------------
|
635
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
636
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
637
|
+
-----------------------------------------------------------------------------
|
638
|
+
ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
|
639
|
+
-----------------------------------------------------------------------------
|
640
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
641
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
642
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
643
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 10:15:33', '2013-10-19 10:15:33')[0m
|
644
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 10:15:33', '2013-10-19 10:15:33')[0m
|
646
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
647
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 10:15:33', '2013-10-19 10:15:33')[0m
|
648
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 10:15:33', '2013-10-19 10:15:33')
|
649
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 10:15:33', '2013-10-19 10:15:33')[0m
|
650
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 10:15:33', '2013-10-19 10:15:33')
|
651
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 10:15:33', '2013-10-19 10:15:33')[0m
|
652
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 10:15:33', '2013-10-19 10:15:33')
|
653
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 10:15:33', '2013-10-19 10:15:33')[0m
|
654
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 10:15:33', '2013-10-19 10:15:33')
|
655
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 10:15:33', '2013-10-19 10:15:33')[0m
|
656
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 10:15:33', '2013-10-19 10:15:33')
|
657
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 10:15:33', '2013-10-19 10:15:33')[0m
|
658
|
+
[1m[35m (291.8ms)[0m commit transaction
|
659
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
668
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
669
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
670
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 11:48:21', '2013-10-19 11:48:21')[0m
|
671
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 11:48:21', '2013-10-19 11:48:21')[0m
|
673
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
674
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 11:48:21', '2013-10-19 11:48:21')[0m
|
675
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 11:48:21', '2013-10-19 11:48:21')
|
676
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 11:48:21', '2013-10-19 11:48:21')[0m
|
677
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 11:48:21', '2013-10-19 11:48:21')
|
678
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 11:48:21', '2013-10-19 11:48:21')[0m
|
679
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 11:48:21', '2013-10-19 11:48:21')
|
680
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 11:48:21', '2013-10-19 11:48:21')[0m
|
681
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 11:48:21', '2013-10-19 11:48:21')
|
682
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 11:48:21', '2013-10-19 11:48:21')[0m
|
683
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 11:48:21', '2013-10-19 11:48:21')
|
684
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 11:48:21', '2013-10-19 11:48:21')[0m
|
685
|
+
[1m[35m (303.4ms)[0m commit transaction
|
686
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
687
|
+
-----------------------------------------------------
|
688
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
689
|
+
-----------------------------------------------------
|
690
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
691
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
692
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
693
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 11:52:06', '2013-10-19 11:52:06')[0m
|
694
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 11:52:06', '2013-10-19 11:52:06')[0m
|
696
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
697
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 11:52:06', '2013-10-19 11:52:06')[0m
|
698
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 11:52:06', '2013-10-19 11:52:06')
|
699
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 11:52:06', '2013-10-19 11:52:06')[0m
|
700
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 11:52:06', '2013-10-19 11:52:06')
|
701
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 11:52:06', '2013-10-19 11:52:06')[0m
|
702
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 11:52:06', '2013-10-19 11:52:06')
|
703
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 11:52:06', '2013-10-19 11:52:06')[0m
|
704
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 11:52:06', '2013-10-19 11:52:06')
|
705
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 11:52:06', '2013-10-19 11:52:06')[0m
|
706
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 11:52:06', '2013-10-19 11:52:06')
|
707
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 11:52:06', '2013-10-19 11:52:06')[0m
|
708
|
+
[1m[35m (286.0ms)[0m commit transaction
|
709
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
710
|
+
-----------------------------------------------------
|
711
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
712
|
+
-----------------------------------------------------
|
713
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
714
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
715
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
716
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 11:52:58', '2013-10-19 11:52:58')[0m
|
717
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 11:52:58', '2013-10-19 11:52:58')[0m
|
719
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
720
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 11:52:58', '2013-10-19 11:52:58')[0m
|
721
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 11:52:58', '2013-10-19 11:52:58')
|
722
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 11:52:58', '2013-10-19 11:52:58')[0m
|
723
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 11:52:58', '2013-10-19 11:52:58')
|
724
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 11:52:58', '2013-10-19 11:52:58')[0m
|
725
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 11:52:58', '2013-10-19 11:52:58')
|
726
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 11:52:58', '2013-10-19 11:52:58')[0m
|
727
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 11:52:58', '2013-10-19 11:52:58')
|
728
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 11:52:58', '2013-10-19 11:52:58')[0m
|
729
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 11:52:58', '2013-10-19 11:52:58')
|
730
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 11:52:58', '2013-10-19 11:52:58')[0m
|
731
|
+
[1m[35m (299.2ms)[0m commit transaction
|
732
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
733
|
+
-----------------------------------------------------
|
734
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
735
|
+
-----------------------------------------------------
|
736
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
737
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
738
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
739
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 11:53:20', '2013-10-19 11:53:20')[0m
|
740
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 11:53:20', '2013-10-19 11:53:20')[0m
|
742
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
743
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 11:53:20', '2013-10-19 11:53:20')[0m
|
744
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 11:53:20', '2013-10-19 11:53:20')
|
745
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 11:53:20', '2013-10-19 11:53:20')[0m
|
746
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 11:53:20', '2013-10-19 11:53:20')
|
747
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 11:53:20', '2013-10-19 11:53:20')[0m
|
748
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 11:53:20', '2013-10-19 11:53:20')
|
749
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 11:53:20', '2013-10-19 11:53:20')[0m
|
750
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 11:53:20', '2013-10-19 11:53:20')
|
751
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 11:53:20', '2013-10-19 11:53:20')[0m
|
752
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 11:53:20', '2013-10-19 11:53:20')
|
753
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 11:53:20', '2013-10-19 11:53:20')[0m
|
754
|
+
[1m[35m (287.9ms)[0m commit transaction
|
755
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
756
|
+
-----------------------------------------------------
|
757
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
758
|
+
-----------------------------------------------------
|
759
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
760
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
761
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
762
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:29:23', '2013-10-19 12:29:23')[0m
|
763
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:29:23', '2013-10-19 12:29:23')[0m
|
765
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
766
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 12:29:23', '2013-10-19 12:29:23')[0m
|
767
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 12:29:23', '2013-10-19 12:29:23')
|
768
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 12:29:23', '2013-10-19 12:29:23')[0m
|
769
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 12:29:23', '2013-10-19 12:29:23')
|
770
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 12:29:23', '2013-10-19 12:29:23')[0m
|
771
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 12:29:23', '2013-10-19 12:29:23')
|
772
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 12:29:23', '2013-10-19 12:29:23')[0m
|
773
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 12:29:23', '2013-10-19 12:29:23')
|
774
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 12:29:23', '2013-10-19 12:29:23')[0m
|
775
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 12:29:23', '2013-10-19 12:29:23')
|
776
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 12:29:23', '2013-10-19 12:29:23')[0m
|
777
|
+
[1m[35m (300.0ms)[0m commit transaction
|
778
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
779
|
+
-----------------------------------------------------
|
780
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
781
|
+
-----------------------------------------------------
|
782
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
783
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
784
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
785
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:29:41', '2013-10-19 12:29:41')[0m
|
786
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:29:41', '2013-10-19 12:29:41')[0m
|
788
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
789
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 12:29:41', '2013-10-19 12:29:41')[0m
|
790
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 12:29:41', '2013-10-19 12:29:41')
|
791
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 12:29:41', '2013-10-19 12:29:41')[0m
|
792
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 12:29:41', '2013-10-19 12:29:41')
|
793
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 12:29:41', '2013-10-19 12:29:41')[0m
|
794
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 12:29:41', '2013-10-19 12:29:41')
|
795
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 12:29:41', '2013-10-19 12:29:41')[0m
|
796
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 12:29:41', '2013-10-19 12:29:41')
|
797
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 12:29:41', '2013-10-19 12:29:41')[0m
|
798
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 12:29:41', '2013-10-19 12:29:41')
|
799
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 12:29:41', '2013-10-19 12:29:41')[0m
|
800
|
+
[1m[35m (295.0ms)[0m commit transaction
|
801
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
802
|
+
-----------------------------------------------------
|
803
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
804
|
+
-----------------------------------------------------
|
805
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
806
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
807
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
808
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:32:41', '2013-10-19 12:32:41')[0m
|
809
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:32:41', '2013-10-19 12:32:41')[0m
|
811
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
812
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 12:32:41', '2013-10-19 12:32:41')[0m
|
813
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 12:32:41', '2013-10-19 12:32:41')
|
814
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 12:32:41', '2013-10-19 12:32:41')[0m
|
815
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 12:32:41', '2013-10-19 12:32:41')
|
816
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 12:32:41', '2013-10-19 12:32:41')[0m
|
817
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 12:32:41', '2013-10-19 12:32:41')
|
818
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 12:32:41', '2013-10-19 12:32:41')[0m
|
819
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 12:32:41', '2013-10-19 12:32:41')
|
820
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 12:32:41', '2013-10-19 12:32:41')[0m
|
821
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 12:32:41', '2013-10-19 12:32:41')
|
822
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 12:32:41', '2013-10-19 12:32:41')[0m
|
823
|
+
[1m[35m (296.6ms)[0m commit transaction
|
824
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
825
|
+
-----------------------------------------------------
|
826
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
827
|
+
-----------------------------------------------------
|
828
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
829
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
830
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:46:26', '2013-10-19 12:46:26')[0m
|
831
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:46:26', '2013-10-19 12:46:26')[0m
|
833
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
834
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 12:46:26', '2013-10-19 12:46:26')[0m
|
835
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 12:46:26', '2013-10-19 12:46:26')
|
836
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 12:46:26', '2013-10-19 12:46:26')[0m
|
837
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 12:46:26', '2013-10-19 12:46:26')
|
838
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 12:46:26', '2013-10-19 12:46:26')[0m
|
839
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 12:46:26', '2013-10-19 12:46:26')
|
840
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 12:46:26', '2013-10-19 12:46:26')[0m
|
841
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 12:46:26', '2013-10-19 12:46:26')
|
842
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 12:46:26', '2013-10-19 12:46:26')[0m
|
843
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 12:46:26', '2013-10-19 12:46:26')
|
844
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 12:46:26', '2013-10-19 12:46:26')[0m
|
845
|
+
[1m[35m (317.9ms)[0m commit transaction
|
846
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
847
|
+
-----------------------------------------------------
|
848
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
849
|
+
-----------------------------------------------------
|
850
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
851
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
852
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:47:49', '2013-10-19 12:47:49')[0m
|
853
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:47:49', '2013-10-19 12:47:49')[0m
|
855
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
856
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 12:47:49', '2013-10-19 12:47:49')[0m
|
857
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 12:47:49', '2013-10-19 12:47:49')
|
858
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 12:47:49', '2013-10-19 12:47:49')[0m
|
859
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 12:47:49', '2013-10-19 12:47:49')
|
860
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 12:47:49', '2013-10-19 12:47:49')[0m
|
861
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 12:47:49', '2013-10-19 12:47:49')
|
862
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 12:47:49', '2013-10-19 12:47:49')[0m
|
863
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 12:47:49', '2013-10-19 12:47:49')
|
864
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 12:47:49', '2013-10-19 12:47:49')[0m
|
865
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 12:47:49', '2013-10-19 12:47:49')
|
866
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 12:47:49', '2013-10-19 12:47:49')[0m
|
867
|
+
[1m[35m (325.8ms)[0m commit transaction
|
868
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
869
|
+
-----------------------------------------------------
|
870
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
871
|
+
-----------------------------------------------------
|
872
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
873
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
874
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
875
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:53:01', '2013-10-19 12:53:01')[0m
|
876
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:53:01', '2013-10-19 12:53:01')[0m
|
878
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
879
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 12:53:01', '2013-10-19 12:53:01')[0m
|
880
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 12:53:01', '2013-10-19 12:53:01')
|
881
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 12:53:01', '2013-10-19 12:53:01')[0m
|
882
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 12:53:01', '2013-10-19 12:53:01')
|
883
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 12:53:01', '2013-10-19 12:53:01')[0m
|
884
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 12:53:01', '2013-10-19 12:53:01')
|
885
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 12:53:01', '2013-10-19 12:53:01')[0m
|
886
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 12:53:01', '2013-10-19 12:53:01')
|
887
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 12:53:01', '2013-10-19 12:53:01')[0m
|
888
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 12:53:01', '2013-10-19 12:53:01')
|
889
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 12:53:01', '2013-10-19 12:53:01')[0m
|
890
|
+
[1m[35m (356.0ms)[0m commit transaction
|
891
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
892
|
+
-----------------------------------------------------
|
893
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
894
|
+
-----------------------------------------------------
|
895
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
896
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
897
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
898
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:55:56', '2013-10-19 12:55:56')[0m
|
899
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:55:56', '2013-10-19 12:55:56')[0m
|
901
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
902
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 12:55:56', '2013-10-19 12:55:56')[0m
|
903
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 12:55:56', '2013-10-19 12:55:56')
|
904
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 12:55:56', '2013-10-19 12:55:56')[0m
|
905
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 12:55:56', '2013-10-19 12:55:56')
|
906
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 12:55:56', '2013-10-19 12:55:56')[0m
|
907
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 12:55:56', '2013-10-19 12:55:56')
|
908
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 12:55:56', '2013-10-19 12:55:56')[0m
|
909
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 12:55:56', '2013-10-19 12:55:56')
|
910
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 12:55:56', '2013-10-19 12:55:56')[0m
|
911
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 12:55:56', '2013-10-19 12:55:56')
|
912
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 12:55:56', '2013-10-19 12:55:56')[0m
|
913
|
+
[1m[35m (302.8ms)[0m commit transaction
|
914
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
921
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
922
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
923
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 12:57:07', '2013-10-19 12:57:07')[0m
|
924
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 12:57:07', '2013-10-19 12:57:07')[0m
|
926
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
927
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 12:57:07', '2013-10-19 12:57:07')[0m
|
928
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 12:57:07', '2013-10-19 12:57:07')
|
929
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 12:57:07', '2013-10-19 12:57:07')[0m
|
930
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 12:57:07', '2013-10-19 12:57:07')
|
931
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 12:57:07', '2013-10-19 12:57:07')[0m
|
932
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 12:57:07', '2013-10-19 12:57:07')
|
933
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 12:57:07', '2013-10-19 12:57:07')[0m
|
934
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 12:57:07', '2013-10-19 12:57:07')
|
935
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 12:57:07', '2013-10-19 12:57:07')[0m
|
936
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 12:57:07', '2013-10-19 12:57:07')
|
937
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 12:57:07', '2013-10-19 12:57:07')[0m
|
938
|
+
[1m[35m (309.8ms)[0m commit transaction
|
939
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
946
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
947
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
948
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:04:06', '2013-10-19 13:04:06')[0m
|
949
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:04:06', '2013-10-19 13:04:06')[0m
|
951
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
952
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 13:04:06', '2013-10-19 13:04:06')[0m
|
953
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 13:04:06', '2013-10-19 13:04:06')
|
954
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 13:04:06', '2013-10-19 13:04:06')[0m
|
955
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 13:04:06', '2013-10-19 13:04:06')
|
956
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 13:04:06', '2013-10-19 13:04:06')[0m
|
957
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 13:04:06', '2013-10-19 13:04:06')
|
958
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 13:04:06', '2013-10-19 13:04:06')[0m
|
959
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 13:04:06', '2013-10-19 13:04:06')
|
960
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 13:04:06', '2013-10-19 13:04:06')[0m
|
961
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 13:04:06', '2013-10-19 13:04:06')
|
962
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 13:04:06', '2013-10-19 13:04:06')[0m
|
963
|
+
[1m[35m (293.0ms)[0m commit transaction
|
964
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
970
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
971
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authors"
|
972
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:26:08', '2013-10-19 13:26:08')[0m
|
973
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:26:08', '2013-10-19 13:26:08')[0m
|
975
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
976
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 13:26:08', '2013-10-19 13:26:08')[0m
|
977
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 13:26:08', '2013-10-19 13:26:08')
|
978
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 13:26:08', '2013-10-19 13:26:08')[0m
|
979
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 13:26:08', '2013-10-19 13:26:08')
|
980
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 13:26:08', '2013-10-19 13:26:08')[0m
|
981
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 13:26:08', '2013-10-19 13:26:08')
|
982
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 13:26:08', '2013-10-19 13:26:08')[0m
|
983
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 13:26:08', '2013-10-19 13:26:08')
|
984
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 13:26:08', '2013-10-19 13:26:08')[0m
|
985
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 13:26:08', '2013-10-19 13:26:08')
|
986
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 13:26:08', '2013-10-19 13:26:08')[0m
|
987
|
+
[1m[35m (653.3ms)[0m commit transaction
|
988
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
995
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
996
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
997
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:28:16', '2013-10-19 13:28:16')[0m
|
998
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:28:16', '2013-10-19 13:28:16')[0m
|
1000
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1001
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 13:28:16', '2013-10-19 13:28:16')[0m
|
1002
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 13:28:16', '2013-10-19 13:28:16')
|
1003
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 13:28:16', '2013-10-19 13:28:16')[0m
|
1004
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 13:28:16', '2013-10-19 13:28:16')
|
1005
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 13:28:16', '2013-10-19 13:28:16')[0m
|
1006
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 13:28:16', '2013-10-19 13:28:16')
|
1007
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 13:28:16', '2013-10-19 13:28:16')[0m
|
1008
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 13:28:16', '2013-10-19 13:28:16')
|
1009
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 13:28:16', '2013-10-19 13:28:16')[0m
|
1010
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 13:28:16', '2013-10-19 13:28:16')
|
1011
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 13:28:16', '2013-10-19 13:28:16')[0m
|
1012
|
+
[1m[35m (323.6ms)[0m commit transaction
|
1013
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1014
|
+
-----------------------------------------------------
|
1015
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
1016
|
+
-----------------------------------------------------
|
1017
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1018
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1019
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1020
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:29:40', '2013-10-19 13:29:40')[0m
|
1021
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:29:40', '2013-10-19 13:29:40')[0m
|
1023
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1024
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 13:29:40', '2013-10-19 13:29:40')[0m
|
1025
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 13:29:40', '2013-10-19 13:29:40')
|
1026
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 13:29:40', '2013-10-19 13:29:40')[0m
|
1027
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 13:29:40', '2013-10-19 13:29:40')
|
1028
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 13:29:40', '2013-10-19 13:29:40')[0m
|
1029
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 13:29:40', '2013-10-19 13:29:40')
|
1030
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 13:29:40', '2013-10-19 13:29:40')[0m
|
1031
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 13:29:40', '2013-10-19 13:29:40')
|
1032
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 13:29:40', '2013-10-19 13:29:40')[0m
|
1033
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 13:29:40', '2013-10-19 13:29:40')
|
1034
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 13:29:40', '2013-10-19 13:29:40')[0m
|
1035
|
+
[1m[35m (280.3ms)[0m commit transaction
|
1036
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1044
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1045
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1046
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:36:49', '2013-10-19 13:36:49')[0m
|
1047
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:36:49', '2013-10-19 13:36:49')[0m
|
1049
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1050
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 13:36:49', '2013-10-19 13:36:49')[0m
|
1051
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 13:36:49', '2013-10-19 13:36:49')
|
1052
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 13:36:49', '2013-10-19 13:36:49')[0m
|
1053
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 13:36:49', '2013-10-19 13:36:49')
|
1054
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 13:36:49', '2013-10-19 13:36:49')[0m
|
1055
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 13:36:49', '2013-10-19 13:36:49')
|
1056
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 13:36:49', '2013-10-19 13:36:49')[0m
|
1057
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 13:36:49', '2013-10-19 13:36:49')
|
1058
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 13:36:49', '2013-10-19 13:36:49')[0m
|
1059
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 13:36:49', '2013-10-19 13:36:49')
|
1060
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 13:36:49', '2013-10-19 13:36:49')[0m
|
1061
|
+
[1m[35m (313.8ms)[0m commit transaction
|
1062
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1068
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1069
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1070
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:40:52', '2013-10-19 13:40:52')[0m
|
1071
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:40:52', '2013-10-19 13:40:52')[0m
|
1073
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
1074
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 13:40:52', '2013-10-19 13:40:52')[0m
|
1075
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 13:40:52', '2013-10-19 13:40:52')
|
1076
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 13:40:52', '2013-10-19 13:40:52')[0m
|
1077
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 13:40:52', '2013-10-19 13:40:52')
|
1078
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 13:40:52', '2013-10-19 13:40:52')[0m
|
1079
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 13:40:52', '2013-10-19 13:40:52')
|
1080
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 13:40:52', '2013-10-19 13:40:52')[0m
|
1081
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 13:40:52', '2013-10-19 13:40:52')
|
1082
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 13:40:52', '2013-10-19 13:40:52')[0m
|
1083
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 13:40:52', '2013-10-19 13:40:52')
|
1084
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 13:40:52', '2013-10-19 13:40:52')[0m
|
1085
|
+
[1m[35m (271.5ms)[0m commit transaction
|
1086
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1093
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1094
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authors"
|
1095
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:42:02', '2013-10-19 13:42:02')[0m
|
1096
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:42:02', '2013-10-19 13:42:02')[0m
|
1098
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "posts"
|
1099
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 13:42:26', '2013-10-19 13:42:26')[0m
|
1100
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 13:42:26', '2013-10-19 13:42:26')
|
1101
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 13:42:26', '2013-10-19 13:42:26')[0m
|
1102
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 13:42:26', '2013-10-19 13:42:26')
|
1103
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 13:42:26', '2013-10-19 13:42:26')[0m
|
1104
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 13:42:26', '2013-10-19 13:42:26')
|
1105
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 13:42:26', '2013-10-19 13:42:26')[0m
|
1106
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 13:42:26', '2013-10-19 13:42:26')
|
1107
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 13:42:26', '2013-10-19 13:42:26')[0m
|
1108
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 13:42:26', '2013-10-19 13:42:26')
|
1109
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 13:42:26', '2013-10-19 13:42:26')[0m
|
1110
|
+
[1m[35m (334.9ms)[0m commit transaction
|
1111
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1112
|
+
-----------------------------------------------------
|
1113
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
1114
|
+
-----------------------------------------------------
|
1115
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1116
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1117
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authors"
|
1118
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:43:22', '2013-10-19 13:43:22')[0m
|
1119
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:43:22', '2013-10-19 13:43:22')[0m
|
1121
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "posts"
|
1122
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 13:43:29', '2013-10-19 13:43:29')[0m
|
1123
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 13:43:29', '2013-10-19 13:43:29')
|
1124
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 13:43:29', '2013-10-19 13:43:29')[0m
|
1125
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 13:43:29', '2013-10-19 13:43:29')
|
1126
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 13:43:29', '2013-10-19 13:43:29')[0m
|
1127
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 13:43:29', '2013-10-19 13:43:29')
|
1128
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 13:43:29', '2013-10-19 13:43:29')[0m
|
1129
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 13:43:29', '2013-10-19 13:43:29')
|
1130
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 13:43:29', '2013-10-19 13:43:29')[0m
|
1131
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 13:43:29', '2013-10-19 13:43:29')
|
1132
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 13:43:29', '2013-10-19 13:43:29')[0m
|
1133
|
+
[1m[35m (295.4ms)[0m commit transaction
|
1134
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1141
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1142
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authors"
|
1143
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 13:52:57', '2013-10-19 13:52:57')[0m
|
1144
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 13:52:57', '2013-10-19 13:52:57')[0m
|
1146
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "posts"
|
1147
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 13:53:15', '2013-10-19 13:53:15')[0m
|
1148
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 13:53:15', '2013-10-19 13:53:15')
|
1149
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 13:53:15', '2013-10-19 13:53:15')[0m
|
1150
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 13:53:15', '2013-10-19 13:53:15')
|
1151
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 13:53:15', '2013-10-19 13:53:15')[0m
|
1152
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 13:53:15', '2013-10-19 13:53:15')
|
1153
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 13:53:15', '2013-10-19 13:53:15')[0m
|
1154
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 13:53:15', '2013-10-19 13:53:15')
|
1155
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 13:53:15', '2013-10-19 13:53:15')[0m
|
1156
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 13:53:15', '2013-10-19 13:53:15')
|
1157
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 13:53:15', '2013-10-19 13:53:15')[0m
|
1158
|
+
[1m[35m (329.3ms)[0m commit transaction
|
1159
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1166
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1167
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1168
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1169
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1170
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 14:00:04', '2013-10-19 14:00:04')[0m
|
1171
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 14:00:04', '2013-10-19 14:00:04')[0m
|
1173
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
1174
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 14:00:04', '2013-10-19 14:00:04')[0m
|
1175
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 14:00:04', '2013-10-19 14:00:04')
|
1176
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 14:00:04', '2013-10-19 14:00:04')[0m
|
1177
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 14:00:04', '2013-10-19 14:00:04')
|
1178
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 14:00:04', '2013-10-19 14:00:04')[0m
|
1179
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 14:00:04', '2013-10-19 14:00:04')
|
1180
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 14:00:04', '2013-10-19 14:00:04')[0m
|
1181
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 14:00:04', '2013-10-19 14:00:04')
|
1182
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 14:00:04', '2013-10-19 14:00:04')[0m
|
1183
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 14:00:04', '2013-10-19 14:00:04')
|
1184
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 14:00:04', '2013-10-19 14:00:04')[0m
|
1185
|
+
[1m[35m (334.5ms)[0m commit transaction
|
1186
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1193
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1194
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authors"
|
1195
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 14:00:54', '2013-10-19 14:00:54')[0m
|
1196
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 14:00:54', '2013-10-19 14:00:54')[0m
|
1198
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "posts"
|
1199
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 14:01:09', '2013-10-19 14:01:09')[0m
|
1200
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 14:01:09', '2013-10-19 14:01:09')
|
1201
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 14:01:09', '2013-10-19 14:01:09')[0m
|
1202
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 14:01:09', '2013-10-19 14:01:09')
|
1203
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 14:01:09', '2013-10-19 14:01:09')[0m
|
1204
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 14:01:09', '2013-10-19 14:01:09')
|
1205
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 14:01:09', '2013-10-19 14:01:09')[0m
|
1206
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 14:01:09', '2013-10-19 14:01:09')
|
1207
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 14:01:09', '2013-10-19 14:01:09')[0m
|
1208
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 14:01:09', '2013-10-19 14:01:09')
|
1209
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 14:01:09', '2013-10-19 14:01:09')[0m
|
1210
|
+
[1m[35m (302.5ms)[0m commit transaction
|
1211
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1218
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1219
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "authors"
|
1220
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 14:02:39', '2013-10-19 14:02:39')[0m
|
1221
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 14:02:39', '2013-10-19 14:02:39')[0m
|
1223
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "posts"
|
1224
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 14:02:47', '2013-10-19 14:02:47')[0m
|
1225
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 14:02:47', '2013-10-19 14:02:47')
|
1226
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 14:02:47', '2013-10-19 14:02:47')[0m
|
1227
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 14:02:47', '2013-10-19 14:02:47')
|
1228
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 14:02:47', '2013-10-19 14:02:47')[0m
|
1229
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 14:02:47', '2013-10-19 14:02:47')
|
1230
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 14:02:47', '2013-10-19 14:02:47')[0m
|
1231
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 14:02:47', '2013-10-19 14:02:47')
|
1232
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 14:02:47', '2013-10-19 14:02:47')[0m
|
1233
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 14:02:47', '2013-10-19 14:02:47')
|
1234
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 14:02:47', '2013-10-19 14:02:47')[0m
|
1235
|
+
[1m[35m (299.5ms)[0m commit transaction
|
1236
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1237
|
+
-----------------------------------------------------
|
1238
|
+
ActiverecordAnyOfTest: test_finding_with_groups_focus
|
1239
|
+
-----------------------------------------------------
|
1240
|
+
[1m[35mPost Load (0.2ms)[0m ( 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1243
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1244
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1245
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-10-19 14:05:33', '2013-10-19 14:05:33')[0m
|
1246
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-10-19 14:05:33', '2013-10-19 14:05:33')[0m
|
1248
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
1249
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-10-19 14:05:33', '2013-10-19 14:05:33')[0m
|
1250
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-10-19 14:05:33', '2013-10-19 14:05:33')
|
1251
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-10-19 14:05:33', '2013-10-19 14:05:33')[0m
|
1252
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-10-19 14:05:33', '2013-10-19 14:05:33')
|
1253
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-10-19 14:05:33', '2013-10-19 14:05:33')[0m
|
1254
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-10-19 14:05:33', '2013-10-19 14:05:33')
|
1255
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-10-19 14:05:33', '2013-10-19 14:05:33')[0m
|
1256
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-10-19 14:05:33', '2013-10-19 14:05:33')
|
1257
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-10-19 14:05:33', '2013-10-19 14:05:33')[0m
|
1258
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-10-19 14:05:33', '2013-10-19 14:05:33')
|
1259
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-10-19 14:05:33', '2013-10-19 14:05:33')[0m
|
1260
|
+
[1m[35m (334.4ms)[0m commit transaction
|
1261
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[36mPost Load (0.2ms)[0m [1m( SELECT "posts".* FROM "posts" GROUP BY type UNION SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 )[0m
|
1277
|
+
SQLite3::SQLException: near "(": syntax error: ( SELECT "posts".* FROM "posts" GROUP BY type UNION SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 2 )
|
1278
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1279
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
1280
|
+
[1m[35mFixture Delete (21.9ms)[0m DELETE FROM "authors"
|
1281
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-11-03 12:05:10', '2013-11-03 12:05:10')[0m
|
1282
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-11-03 12:05:10', '2013-11-03 12:05:10')[0m
|
1284
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1285
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-11-03 12:05:10', '2013-11-03 12:05:10')[0m
|
1286
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-11-03 12:05:10', '2013-11-03 12:05:10')
|
1287
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-11-03 12:05:10', '2013-11-03 12:05:10')[0m
|
1288
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-11-03 12:05:10', '2013-11-03 12:05:10')
|
1289
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-11-03 12:05:10', '2013-11-03 12:05:10')[0m
|
1290
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-11-03 12:05:10', '2013-11-03 12:05:10')
|
1291
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-11-03 12:05:10', '2013-11-03 12:05:10')[0m
|
1292
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-11-03 12:05:10', '2013-11-03 12:05:10')
|
1293
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-11-03 12:05:10', '2013-11-03 12:05:10')[0m
|
1294
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-11-03 12:05:10', '2013-11-03 12:05:10')
|
1295
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-11-03 12:05:10', '2013-11-03 12:05:10')[0m
|
1296
|
+
[1m[35m (278.9ms)[0m commit transaction
|
1297
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1298
|
+
------------------------------------------------------------------------
|
1299
|
+
ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
|
1300
|
+
------------------------------------------------------------------------
|
1301
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
1302
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1303
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1304
|
+
--------------------------------------------------------------------------------------
|
1305
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_a_single_Hash_as_parameter_expands_it
|
1306
|
+
--------------------------------------------------------------------------------------
|
1307
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ("authors"."name" = 'David' AND "authors"."id" = 2)[0m
|
1308
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1309
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1310
|
+
----------------------------------------------------------------------------
|
1311
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
|
1312
|
+
----------------------------------------------------------------------------
|
1313
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1314
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1315
|
+
-----------------------------------------------------------------------------
|
1316
|
+
ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
|
1317
|
+
-----------------------------------------------------------------------------
|
1318
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1319
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1320
|
+
-----------------------------------------------------------------------------
|
1321
|
+
ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
|
1322
|
+
-----------------------------------------------------------------------------
|
1323
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
1324
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1325
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1326
|
+
-----------------------------------------------------------------------------
|
1327
|
+
ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
|
1328
|
+
-----------------------------------------------------------------------------
|
1329
|
+
[1m[36mAuthor Load (0.2ms)[0m [1mSELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
1330
|
+
[1m[35mSQL (0.2ms)[0m SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
1331
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1332
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1333
|
+
-------------------------------------------------------------
|
1334
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions
|
1335
|
+
-------------------------------------------------------------
|
1336
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
1337
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
|
1338
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))[0m
|
1339
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
|
1340
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))[0m
|
1341
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1342
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1343
|
+
----------------------------------------------------------------------------
|
1344
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
|
1345
|
+
----------------------------------------------------------------------------
|
1346
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
|
1347
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m [["author_id", 1]]
|
1348
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1349
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1350
|
+
----------------------------------------------------------------------
|
1351
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
|
1352
|
+
----------------------------------------------------------------------
|
1353
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
|
1354
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1355
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1356
|
+
-------------------------------------------------------------------------------------
|
1357
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
|
1358
|
+
-------------------------------------------------------------------------------------
|
1359
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1[0m
|
1360
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))) [["author_id", 1]]
|
1361
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1362
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1363
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1364
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-11-03 12:08:47', '2013-11-03 12:08:47')[0m
|
1365
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-11-03 12:08:47', '2013-11-03 12:08:47')[0m
|
1367
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1368
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-11-03 12:08:47', '2013-11-03 12:08:47')[0m
|
1369
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-11-03 12:08:47', '2013-11-03 12:08:47')
|
1370
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-11-03 12:08:47', '2013-11-03 12:08:47')[0m
|
1371
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-11-03 12:08:47', '2013-11-03 12:08:47')
|
1372
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-11-03 12:08:47', '2013-11-03 12:08:47')[0m
|
1373
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-11-03 12:08:47', '2013-11-03 12:08:47')
|
1374
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-11-03 12:08:47', '2013-11-03 12:08:47')[0m
|
1375
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-11-03 12:08:47', '2013-11-03 12:08:47')
|
1376
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-11-03 12:08:47', '2013-11-03 12:08:47')[0m
|
1377
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-11-03 12:08:47', '2013-11-03 12:08:47')
|
1378
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-11-03 12:08:47', '2013-11-03 12:08:47')[0m
|
1379
|
+
[1m[35m (288.9ms)[0m commit transaction
|
1380
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1381
|
+
------------------------------------------------------------------------
|
1382
|
+
ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
|
1383
|
+
------------------------------------------------------------------------
|
1384
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
1385
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1386
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1387
|
+
--------------------------------------------------------------------------------------
|
1388
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_a_single_Hash_as_parameter_expands_it
|
1389
|
+
--------------------------------------------------------------------------------------
|
1390
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."id" = 2))[0m
|
1391
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1392
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1393
|
+
----------------------------------------------------------------------------
|
1394
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
|
1395
|
+
----------------------------------------------------------------------------
|
1396
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1397
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1398
|
+
-----------------------------------------------------------------------------
|
1399
|
+
ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
|
1400
|
+
-----------------------------------------------------------------------------
|
1401
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1402
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1403
|
+
-----------------------------------------------------------------------------
|
1404
|
+
ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
|
1405
|
+
-----------------------------------------------------------------------------
|
1406
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
1407
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1408
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1409
|
+
-----------------------------------------------------------------------------
|
1410
|
+
ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
|
1411
|
+
-----------------------------------------------------------------------------
|
1412
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
1413
|
+
[1m[35mSQL (0.1ms)[0m SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
1414
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1415
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1416
|
+
-------------------------------------------------------------
|
1417
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions
|
1418
|
+
-------------------------------------------------------------
|
1419
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
1420
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
|
1421
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))[0m
|
1422
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
|
1423
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))[0m
|
1424
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1425
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1426
|
+
----------------------------------------------------------------------------
|
1427
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
|
1428
|
+
----------------------------------------------------------------------------
|
1429
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
|
1430
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m [["author_id", 1]]
|
1431
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1432
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1433
|
+
----------------------------------------------------------------------
|
1434
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
|
1435
|
+
----------------------------------------------------------------------
|
1436
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
|
1437
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1438
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1439
|
+
-------------------------------------------------------------------------------------
|
1440
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
|
1441
|
+
-------------------------------------------------------------------------------------
|
1442
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1[0m
|
1443
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))) [["author_id", 1]]
|
1444
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1445
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1446
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1447
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-11-03 13:05:33', '2013-11-03 13:05:33')[0m
|
1448
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-11-03 13:05:33', '2013-11-03 13:05:33')[0m
|
1450
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "posts"
|
1451
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-11-03 13:05:33', '2013-11-03 13:05:33')[0m
|
1452
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-11-03 13:05:33', '2013-11-03 13:05:33')
|
1453
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-11-03 13:05:33', '2013-11-03 13:05:33')[0m
|
1454
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-11-03 13:05:33', '2013-11-03 13:05:33')
|
1455
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-11-03 13:05:33', '2013-11-03 13:05:33')[0m
|
1456
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-11-03 13:05:33', '2013-11-03 13:05:33')
|
1457
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-11-03 13:05:33', '2013-11-03 13:05:33')[0m
|
1458
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-11-03 13:05:33', '2013-11-03 13:05:33')
|
1459
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-11-03 13:05:33', '2013-11-03 13:05:33')[0m
|
1460
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-11-03 13:05:33', '2013-11-03 13:05:33')
|
1461
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-11-03 13:05:33', '2013-11-03 13:05:33')[0m
|
1462
|
+
[1m[35m (284.6ms)[0m commit transaction
|
1463
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1464
|
+
------------------------------------------------------------------------
|
1465
|
+
ActiverecordAnyOfTest: test_calling_#any_of_after_a_wildcard_query_works
|
1466
|
+
------------------------------------------------------------------------
|
1467
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
1468
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1469
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1470
|
+
--------------------------------------------------------------------------------------
|
1471
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_a_single_Hash_as_parameter_expands_it
|
1472
|
+
--------------------------------------------------------------------------------------
|
1473
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."id" = 2))[0m
|
1474
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1475
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1476
|
+
----------------------------------------------------------------------------
|
1477
|
+
ActiverecordAnyOfTest: test_calling_#any_of_with_no_argument_raise_exception
|
1478
|
+
----------------------------------------------------------------------------
|
1479
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1480
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1481
|
+
-----------------------------------------------------------------------------
|
1482
|
+
ActiverecordAnyOfTest: test_calling_#none_of_with_no_argument_raise_exception
|
1483
|
+
-----------------------------------------------------------------------------
|
1484
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1485
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1486
|
+
-----------------------------------------------------------------------------
|
1487
|
+
ActiverecordAnyOfTest: test_calling_directly_#any_of_is_deprecated_in_rails-4
|
1488
|
+
-----------------------------------------------------------------------------
|
1489
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
1490
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1491
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1492
|
+
-----------------------------------------------------------------------------
|
1493
|
+
ActiverecordAnyOfTest: test_finding_alternate_dynamically_with_joined_queries
|
1494
|
+
-----------------------------------------------------------------------------
|
1495
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
1496
|
+
[1m[35mSQL (0.1ms)[0m SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
1497
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1498
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1499
|
+
-------------------------------------------------------------
|
1500
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions
|
1501
|
+
-------------------------------------------------------------
|
1502
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
1503
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
|
1504
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))[0m
|
1505
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
|
1506
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ("authors"."name" != 'Mary') AND (("authors"."name" = 'David' OR ("authors"."name" != 'Mary') AND (name = 'Mary')))[0m
|
1507
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1508
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1509
|
+
----------------------------------------------------------------------------
|
1510
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_conditions_on_association
|
1511
|
+
----------------------------------------------------------------------------
|
1512
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1
|
1513
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m [["author_id", 1]]
|
1514
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1515
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1516
|
+
----------------------------------------------------------------------
|
1517
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions
|
1518
|
+
----------------------------------------------------------------------
|
1519
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
|
1520
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1521
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1522
|
+
-------------------------------------------------------------------------------------
|
1523
|
+
ActiverecordAnyOfTest: test_finding_with_alternate_negative_conditions_on_association
|
1524
|
+
-------------------------------------------------------------------------------------
|
1525
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' ORDER BY "authors"."id" ASC LIMIT 1[0m
|
1526
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = ? AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))) [["author_id", 1]]
|
1527
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|