active_sort_order 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -3
  3. data/lib/active_sort_order/version.rb +1 -1
  4. data/lib/active_sort_order.rb +10 -6
  5. metadata +21 -81
  6. data/test/dummy_app/Rakefile +0 -7
  7. data/test/dummy_app/app/assets/config/manifest.js +0 -3
  8. data/test/dummy_app/app/assets/javascripts/application.js +0 -0
  9. data/test/dummy_app/app/assets/stylesheets/application.css +0 -3
  10. data/test/dummy_app/app/controllers/application_controller.rb +0 -3
  11. data/test/dummy_app/app/models/application_record.rb +0 -3
  12. data/test/dummy_app/app/models/post.rb +0 -3
  13. data/test/dummy_app/app/models/post_with_base_order_a.rb +0 -7
  14. data/test/dummy_app/app/models/post_with_base_order_a_and_b.rb +0 -7
  15. data/test/dummy_app/app/models/post_with_base_order_b.rb +0 -7
  16. data/test/dummy_app/app/models/post_with_base_order_b_and_a.rb +0 -7
  17. data/test/dummy_app/app/models/post_with_volatile_base_order.rb +0 -7
  18. data/test/dummy_app/app/views/layouts/application.html.erb +0 -14
  19. data/test/dummy_app/config/application.rb +0 -61
  20. data/test/dummy_app/config/boot.rb +0 -10
  21. data/test/dummy_app/config/database.yml +0 -20
  22. data/test/dummy_app/config/environment.rb +0 -5
  23. data/test/dummy_app/config/environments/development.rb +0 -30
  24. data/test/dummy_app/config/environments/production.rb +0 -60
  25. data/test/dummy_app/config/environments/test.rb +0 -41
  26. data/test/dummy_app/config/initializers/backtrace_silencers.rb +0 -7
  27. data/test/dummy_app/config/initializers/inflections.rb +0 -10
  28. data/test/dummy_app/config/initializers/mime_types.rb +0 -5
  29. data/test/dummy_app/config/initializers/secret_token.rb +0 -11
  30. data/test/dummy_app/config/initializers/session_store.rb +0 -8
  31. data/test/dummy_app/config/initializers/wrap_parameters.rb +0 -14
  32. data/test/dummy_app/config/locales/en.yml +0 -5
  33. data/test/dummy_app/config/routes.rb +0 -6
  34. data/test/dummy_app/config/secrets.yml +0 -22
  35. data/test/dummy_app/config.ru +0 -4
  36. data/test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb +0 -15
  37. data/test/dummy_app/db/schema.rb +0 -19
  38. data/test/dummy_app/db/test.sqlite3 +0 -0
  39. data/test/dummy_app/log/test.log +0 -754
  40. data/test/test_helper.rb +0 -63
  41. data/test/unit/active_sort_order_test.rb +0 -144
  42. data/test/unit/errors_test.rb +0 -205
@@ -1,754 +0,0 @@
1
-  (1.0ms) SELECT sqlite_version(*)
2
-  (0.0ms) SELECT sqlite_version(*)
3
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
4
-  (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
5
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6
- Migrating to SetUpTestTables (20210128155312)
7
- TRANSACTION (0.0ms) begin transaction
8
-  (0.3ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "a" integer, "b" integer)
9
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20210128155312"]]
10
- TRANSACTION (0.7ms) commit transaction
11
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
12
- TRANSACTION (0.0ms) begin transaction
13
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-04-28 15:34:46.254639"], ["updated_at", "2021-04-28 15:34:46.254639"]]
14
- TRANSACTION (0.8ms) commit transaction
15
-  (0.7ms) DELETE FROM posts;
16
-  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
17
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
18
- TRANSACTION (0.0ms) begin transaction
19
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
20
- TRANSACTION (0.5ms) commit transaction
21
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
22
- TRANSACTION (0.0ms) begin transaction
23
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
24
- TRANSACTION (0.4ms) commit transaction
25
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
26
- TRANSACTION (0.0ms) begin transaction
27
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
28
- TRANSACTION (0.5ms) commit transaction
29
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
30
- TRANSACTION (0.0ms) begin transaction
31
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
32
- TRANSACTION (0.5ms) commit transaction
33
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
34
- TRANSACTION (0.0ms) begin transaction
35
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
36
- TRANSACTION (0.6ms) commit transaction
37
- TRANSACTION (0.0ms) begin transaction
38
- -------------------------------------------------------
39
- ActiveSortOrderTest: test_override_base_sort_order_only
40
- -------------------------------------------------------
41
-  (0.1ms) SELECT COUNT(*) FROM "posts"
42
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
43
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC
44
- TRANSACTION (0.0ms) rollback transaction
45
- TRANSACTION (0.0ms) begin transaction
46
- --------------------------------------------------
47
- ActiveSortOrderTest: test_base_sort_order_and_sort
48
- --------------------------------------------------
49
-  (0.1ms) SELECT COUNT(*) FROM "posts"
50
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
51
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
52
- TRANSACTION (0.0ms) rollback transaction
53
- TRANSACTION (0.0ms) begin transaction
54
- -------------------------------------------------------------
55
- ActiveSortOrderTest: test_class_method_base_sort_order_errors
56
- -------------------------------------------------------------
57
- TRANSACTION (0.0ms) rollback transaction
58
- TRANSACTION (0.0ms) begin transaction
59
- ---------------------------------------------
60
- ActiveSortOrderTest: test_exposes_main_module
61
- ---------------------------------------------
62
- TRANSACTION (0.0ms) rollback transaction
63
- TRANSACTION (0.0ms) begin transaction
64
- -----------------------------------------------
65
- ActiveSortOrderTest: test_sort_direction_errors
66
- -----------------------------------------------
67
- TRANSACTION (0.0ms) rollback transaction
68
- TRANSACTION (0.0ms) begin transaction
69
- -----------------------------------------
70
- ActiveSortOrderTest: test_exposes_version
71
- -----------------------------------------
72
- TRANSACTION (0.1ms) rollback transaction
73
- TRANSACTION (0.0ms) begin transaction
74
- -------------------------------------------------------
75
- ActiveSortOrderTest: test_base_sort_order_default_value
76
- -------------------------------------------------------
77
- TRANSACTION (0.0ms) rollback transaction
78
- TRANSACTION (0.0ms) begin transaction
79
- -----------------------------------------
80
- ActiveSortOrderTest: test_sort_str_errors
81
- -----------------------------------------
82
- TRANSACTION (0.0ms) rollback transaction
83
- TRANSACTION (0.1ms) begin transaction
84
- ----------------------------------------------------
85
- ActiveSortOrderTest: test_class_base_sort_order_only
86
- ----------------------------------------------------
87
-  (0.1ms) SELECT COUNT(*) FROM "posts"
88
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
89
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
90
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
91
- PostWithBaseOrderBAndA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
92
- TRANSACTION (0.1ms) rollback transaction
93
- TRANSACTION (0.0ms) begin transaction
94
- ---------------------------------------------------------
95
- ActiveSortOrderTest: test_argument_base_sort_order_errors
96
- ---------------------------------------------------------
97
- TRANSACTION (0.0ms) rollback transaction
98
- TRANSACTION (0.0ms) begin transaction
99
- -----------------------------------
100
- ActiveSortOrderTest: test_sort_only
101
- -----------------------------------
102
-  (0.1ms) SELECT COUNT(*) FROM "posts"
103
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
104
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
105
- TRANSACTION (0.0ms) rollback transaction
106
-  (0.9ms) SELECT sqlite_version(*)
107
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
108
-  (0.0ms) SELECT sqlite_version(*)
109
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
110
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
111
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
112
-  (1.4ms) DELETE FROM posts;
113
-  (0.8ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
114
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
115
- TRANSACTION (0.0ms) begin transaction
116
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
117
- TRANSACTION (0.7ms) commit transaction
118
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
119
- TRANSACTION (0.0ms) begin transaction
120
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
121
- TRANSACTION (0.5ms) commit transaction
122
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
123
- TRANSACTION (0.0ms) begin transaction
124
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
125
- TRANSACTION (0.5ms) commit transaction
126
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
127
- TRANSACTION (0.0ms) begin transaction
128
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
129
- TRANSACTION (0.8ms) commit transaction
130
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
131
- TRANSACTION (0.0ms) begin transaction
132
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
133
- TRANSACTION (0.5ms) commit transaction
134
- TRANSACTION (0.0ms) begin transaction
135
- --------------------------------------------------
136
- ActiveSortOrderTest: test_base_sort_order_and_sort
137
- --------------------------------------------------
138
-  (0.2ms) SELECT COUNT(*) FROM "posts"
139
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
140
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
141
- TRANSACTION (0.0ms) rollback transaction
142
- TRANSACTION (0.0ms) begin transaction
143
- ---------------------------------------------
144
- ActiveSortOrderTest: test_exposes_main_module
145
- ---------------------------------------------
146
- TRANSACTION (0.0ms) rollback transaction
147
- TRANSACTION (0.0ms) begin transaction
148
- -----------------------------------------
149
- ActiveSortOrderTest: test_exposes_version
150
- -----------------------------------------
151
- TRANSACTION (0.0ms) rollback transaction
152
- TRANSACTION (0.0ms) begin transaction
153
- -------------------------------------------------------
154
- ActiveSortOrderTest: test_override_base_sort_order_only
155
- -------------------------------------------------------
156
-  (0.1ms) SELECT COUNT(*) FROM "posts"
157
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
158
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
159
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
160
- TRANSACTION (0.0ms) rollback transaction
161
- TRANSACTION (0.0ms) begin transaction
162
- -------------------------------------------------------
163
- ActiveSortOrderTest: test_base_sort_order_default_value
164
- -------------------------------------------------------
165
- TRANSACTION (0.0ms) rollback transaction
166
- TRANSACTION (0.0ms) begin transaction
167
- ----------------------------------------------------
168
- ActiveSortOrderTest: test_class_base_sort_order_only
169
- ----------------------------------------------------
170
-  (0.1ms) SELECT COUNT(*) FROM "posts"
171
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
172
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
173
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
174
- PostWithBaseOrderBAndA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
175
- TRANSACTION (0.1ms) rollback transaction
176
- TRANSACTION (0.0ms) begin transaction
177
- -----------------------------------
178
- ActiveSortOrderTest: test_sort_only
179
- -----------------------------------
180
-  (0.1ms) SELECT COUNT(*) FROM "posts"
181
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
182
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
183
- TRANSACTION (0.0ms) rollback transaction
184
- TRANSACTION (0.0ms) begin transaction
185
- -----------------------------------------
186
- ActiveSortOrderTest: test_sort_str_errors
187
- -----------------------------------------
188
- TRANSACTION (0.0ms) rollback transaction
189
- TRANSACTION (0.0ms) begin transaction
190
- -------------------------------------------------------------
191
- ActiveSortOrderTest: test_class_method_base_sort_order_errors
192
- -------------------------------------------------------------
193
- TRANSACTION (0.0ms) rollback transaction
194
- TRANSACTION (0.0ms) begin transaction
195
- ---------------------------------------------------------
196
- ActiveSortOrderTest: test_argument_base_sort_order_errors
197
- ---------------------------------------------------------
198
- TRANSACTION (0.0ms) rollback transaction
199
- TRANSACTION (0.0ms) begin transaction
200
- -----------------------------------------------
201
- ActiveSortOrderTest: test_sort_direction_errors
202
- -----------------------------------------------
203
- TRANSACTION (0.1ms) rollback transaction
204
-  (1.1ms) SELECT sqlite_version(*)
205
-  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
206
-  (0.1ms) SELECT sqlite_version(*)
207
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
208
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
209
- ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
210
-  (1.6ms) DELETE FROM posts;
211
-  (1.3ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
212
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
213
- TRANSACTION (0.0ms) begin transaction
214
- Post Create (0.3ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
215
- TRANSACTION (0.8ms) commit transaction
216
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
217
- TRANSACTION (0.0ms) begin transaction
218
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
219
- TRANSACTION (0.6ms) commit transaction
220
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
221
- TRANSACTION (0.0ms) begin transaction
222
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
223
- TRANSACTION (0.5ms) commit transaction
224
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
225
- TRANSACTION (0.0ms) begin transaction
226
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
227
- TRANSACTION (0.7ms) commit transaction
228
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
229
- TRANSACTION (0.0ms) begin transaction
230
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
231
- TRANSACTION (1.1ms) commit transaction
232
- TRANSACTION (0.1ms) begin transaction
233
- -------------------------------------------------------
234
- ActiveSortOrderTest: test_override_base_sort_order_only
235
- -------------------------------------------------------
236
-  (0.1ms) SELECT COUNT(*) FROM "posts"
237
- TRANSACTION (0.0ms) rollback transaction
238
- TRANSACTION (0.0ms) begin transaction
239
- -------------------------------------------------
240
- ActiveSortOrderTest: test_sort_on_multiple_fields
241
- -------------------------------------------------
242
-  (0.1ms) SELECT COUNT(*) FROM "posts"
243
- TRANSACTION (0.0ms) rollback transaction
244
- TRANSACTION (0.0ms) begin transaction
245
- --------------------------------------------------
246
- ActiveSortOrderTest: test_base_sort_order_and_sort
247
- --------------------------------------------------
248
-  (0.1ms) SELECT COUNT(*) FROM "posts"
249
- TRANSACTION (0.0ms) rollback transaction
250
- TRANSACTION (0.0ms) begin transaction
251
- ----------------------------------------------------
252
- ActiveSortOrderTest: test_class_base_sort_order_only
253
- ----------------------------------------------------
254
-  (0.1ms) SELECT COUNT(*) FROM "posts"
255
- TRANSACTION (0.0ms) rollback transaction
256
- TRANSACTION (0.0ms) begin transaction
257
- ---------------------------------------------
258
- ActiveSortOrderTest: test_exposes_main_module
259
- ---------------------------------------------
260
- TRANSACTION (0.0ms) rollback transaction
261
- TRANSACTION (0.0ms) begin transaction
262
- -----------------------------------
263
- ActiveSortOrderTest: test_sort_only
264
- -----------------------------------
265
-  (0.1ms) SELECT COUNT(*) FROM "posts"
266
- TRANSACTION (0.0ms) rollback transaction
267
- TRANSACTION (0.0ms) begin transaction
268
- -----------------------------------------
269
- ActiveSortOrderTest: test_exposes_version
270
- -----------------------------------------
271
- TRANSACTION (0.0ms) rollback transaction
272
- TRANSACTION (0.0ms) begin transaction
273
- -------------------------------------------------------
274
- ActiveSortOrderTest: test_base_sort_order_default_value
275
- -------------------------------------------------------
276
- TRANSACTION (0.0ms) rollback transaction
277
- PostWithBaseOrderA Load (0.2ms) SELECT "posts".* FROM "posts" /* loading for inspect */ ORDER BY "posts"."b" DESC LIMIT ? [["LIMIT", 11]]
278
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ ORDER BY "posts"."b" DESC LIMIT ? [["LIMIT", 11]]
279
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
280
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
281
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
282
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
283
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
284
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
285
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
286
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
287
-  (0.7ms) SELECT sqlite_version(*)
288
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
289
-  (0.0ms) SELECT sqlite_version(*)
290
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
291
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
292
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
293
-  (1.8ms) DELETE FROM posts;
294
-  (1.4ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
295
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
296
- TRANSACTION (0.0ms) begin transaction
297
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
298
- TRANSACTION (0.8ms) commit transaction
299
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
300
- TRANSACTION (0.0ms) begin transaction
301
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
302
- TRANSACTION (0.7ms) commit transaction
303
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
304
- TRANSACTION (0.0ms) begin transaction
305
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
306
- TRANSACTION (0.7ms) commit transaction
307
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
308
- TRANSACTION (0.0ms) begin transaction
309
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
310
- TRANSACTION (0.7ms) commit transaction
311
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
312
- TRANSACTION (0.0ms) begin transaction
313
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
314
- TRANSACTION (0.7ms) commit transaction
315
- TRANSACTION (0.0ms) begin transaction
316
- ---------------------------------------------
317
- ActiveSortOrderTest: test_exposes_main_module
318
- ---------------------------------------------
319
- TRANSACTION (0.0ms) rollback transaction
320
- TRANSACTION (0.0ms) begin transaction
321
- -------------------------------------------------------
322
- ActiveSortOrderTest: test_override_base_sort_order_only
323
- -------------------------------------------------------
324
-  (0.1ms) SELECT COUNT(*) FROM "posts"
325
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
326
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
327
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
328
- TRANSACTION (0.0ms) rollback transaction
329
- TRANSACTION (0.0ms) begin transaction
330
- -----------------------------------
331
- ActiveSortOrderTest: test_sort_only
332
- -----------------------------------
333
-  (0.1ms) SELECT COUNT(*) FROM "posts"
334
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
335
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
336
- TRANSACTION (0.0ms) rollback transaction
337
- TRANSACTION (0.0ms) begin transaction
338
- -----------------------------------------
339
- ActiveSortOrderTest: test_exposes_version
340
- -----------------------------------------
341
- TRANSACTION (0.0ms) rollback transaction
342
- TRANSACTION (0.0ms) begin transaction
343
- --------------------------------------------------
344
- ActiveSortOrderTest: test_base_sort_order_and_sort
345
- --------------------------------------------------
346
-  (0.1ms) SELECT COUNT(*) FROM "posts"
347
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
348
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
349
- TRANSACTION (0.0ms) rollback transaction
350
- TRANSACTION (0.0ms) begin transaction
351
- -------------------------------------------------
352
- ActiveSortOrderTest: test_sort_on_multiple_fields
353
- -------------------------------------------------
354
-  (0.1ms) SELECT COUNT(*) FROM "posts"
355
- TRANSACTION (0.0ms) rollback transaction
356
- TRANSACTION (0.0ms) begin transaction
357
- -------------------------------------------------------
358
- ActiveSortOrderTest: test_base_sort_order_default_value
359
- -------------------------------------------------------
360
- TRANSACTION (0.0ms) rollback transaction
361
- TRANSACTION (0.0ms) begin transaction
362
- ----------------------------------------------------
363
- ActiveSortOrderTest: test_class_base_sort_order_only
364
- ----------------------------------------------------
365
-  (0.1ms) SELECT COUNT(*) FROM "posts"
366
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
367
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
368
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
369
- PostWithBaseOrderBAndA Load (0.8ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
370
- TRANSACTION (0.1ms) rollback transaction
371
-  (0.7ms) SELECT sqlite_version(*)
372
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
373
-  (0.0ms) SELECT sqlite_version(*)
374
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
375
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
376
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
377
-  (1.2ms) DELETE FROM posts;
378
-  (0.9ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
379
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
380
- TRANSACTION (0.0ms) begin transaction
381
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
382
- TRANSACTION (0.7ms) commit transaction
383
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
384
- TRANSACTION (0.0ms) begin transaction
385
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
386
- TRANSACTION (0.7ms) commit transaction
387
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
388
- TRANSACTION (0.0ms) begin transaction
389
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
390
- TRANSACTION (0.7ms) commit transaction
391
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
392
- TRANSACTION (0.0ms) begin transaction
393
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
394
- TRANSACTION (0.7ms) commit transaction
395
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
396
- TRANSACTION (0.0ms) begin transaction
397
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
398
- TRANSACTION (0.7ms) commit transaction
399
- TRANSACTION (0.0ms) begin transaction
400
- -----------------------------------
401
- ActiveSortOrderTest: test_sort_only
402
- -----------------------------------
403
-  (0.1ms) SELECT COUNT(*) FROM "posts"
404
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
405
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
406
- TRANSACTION (0.0ms) rollback transaction
407
- TRANSACTION (0.0ms) begin transaction
408
- ---------------------------------------------
409
- ActiveSortOrderTest: test_exposes_main_module
410
- ---------------------------------------------
411
- TRANSACTION (0.0ms) rollback transaction
412
- TRANSACTION (0.0ms) begin transaction
413
- -----------------------------------------
414
- ActiveSortOrderTest: test_exposes_version
415
- -----------------------------------------
416
- TRANSACTION (0.0ms) rollback transaction
417
- TRANSACTION (0.0ms) begin transaction
418
- ----------------------------------------------------
419
- ActiveSortOrderTest: test_class_base_sort_order_only
420
- ----------------------------------------------------
421
-  (0.1ms) SELECT COUNT(*) FROM "posts"
422
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
423
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
424
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
425
- PostWithBaseOrderBAndA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
426
- TRANSACTION (0.0ms) rollback transaction
427
- TRANSACTION (0.0ms) begin transaction
428
- -------------------------------------------------------
429
- ActiveSortOrderTest: test_override_base_sort_order_only
430
- -------------------------------------------------------
431
-  (0.1ms) SELECT COUNT(*) FROM "posts"
432
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
433
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
434
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
435
- TRANSACTION (0.0ms) rollback transaction
436
- TRANSACTION (0.0ms) begin transaction
437
- -------------------------------------------------------
438
- ActiveSortOrderTest: test_base_sort_order_default_value
439
- -------------------------------------------------------
440
- TRANSACTION (0.0ms) rollback transaction
441
- TRANSACTION (0.0ms) begin transaction
442
- --------------------------------------------------
443
- ActiveSortOrderTest: test_base_sort_order_and_sort
444
- --------------------------------------------------
445
-  (0.1ms) SELECT COUNT(*) FROM "posts"
446
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
447
- PostWithBaseOrderB Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
448
- TRANSACTION (0.0ms) rollback transaction
449
- TRANSACTION (0.0ms) begin transaction
450
- -------------------------------------------------
451
- ActiveSortOrderTest: test_sort_on_multiple_fields
452
- -------------------------------------------------
453
-  (0.1ms) SELECT COUNT(*) FROM "posts"
454
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY b asc, a asc, posts.a ASC
455
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY b desc, a desc, posts.a ASC
456
- TRANSACTION (0.0ms) rollback transaction
457
-  (0.7ms) SELECT sqlite_version(*)
458
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
459
-  (0.0ms) SELECT sqlite_version(*)
460
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
461
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
462
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
463
-  (1.3ms) DELETE FROM posts;
464
-  (0.7ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
465
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
466
- TRANSACTION (0.0ms) begin transaction
467
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
468
- TRANSACTION (0.7ms) commit transaction
469
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
470
- TRANSACTION (0.0ms) begin transaction
471
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
472
- TRANSACTION (0.6ms) commit transaction
473
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
474
- TRANSACTION (0.0ms) begin transaction
475
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
476
- TRANSACTION (0.8ms) commit transaction
477
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
478
- TRANSACTION (0.0ms) begin transaction
479
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
480
- TRANSACTION (0.7ms) commit transaction
481
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
482
- TRANSACTION (0.0ms) begin transaction
483
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
484
- TRANSACTION (0.7ms) commit transaction
485
- TRANSACTION (0.0ms) begin transaction
486
- -------------------------------------------------
487
- ActiveSortOrderTest: test_sort_on_multiple_fields
488
- -------------------------------------------------
489
-  (0.1ms) SELECT COUNT(*) FROM "posts"
490
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY b asc, a asc, posts.a ASC
491
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY b desc, a desc, posts.a ASC
492
- TRANSACTION (0.1ms) rollback transaction
493
- TRANSACTION (0.0ms) begin transaction
494
- ----------------------------------------------------
495
- ActiveSortOrderTest: test_class_base_sort_order_only
496
- ----------------------------------------------------
497
-  (0.1ms) SELECT COUNT(*) FROM "posts"
498
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
499
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
500
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
501
- PostWithBaseOrderBAndA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
502
- TRANSACTION (0.0ms) rollback transaction
503
- TRANSACTION (0.0ms) begin transaction
504
- --------------------------------------------------
505
- ActiveSortOrderTest: test_base_sort_order_and_sort
506
- --------------------------------------------------
507
-  (0.1ms) SELECT COUNT(*) FROM "posts"
508
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
509
- PostWithBaseOrderB Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
510
- TRANSACTION (0.0ms) rollback transaction
511
- TRANSACTION (0.0ms) begin transaction
512
- -----------------------------------------
513
- ActiveSortOrderTest: test_exposes_version
514
- -----------------------------------------
515
- TRANSACTION (0.0ms) rollback transaction
516
- TRANSACTION (0.0ms) begin transaction
517
- -----------------------------------
518
- ActiveSortOrderTest: test_sort_only
519
- -----------------------------------
520
-  (0.1ms) SELECT COUNT(*) FROM "posts"
521
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
522
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
523
- TRANSACTION (0.0ms) rollback transaction
524
- TRANSACTION (0.0ms) begin transaction
525
- -------------------------------------------------------
526
- ActiveSortOrderTest: test_base_sort_order_default_value
527
- -------------------------------------------------------
528
- TRANSACTION (0.0ms) rollback transaction
529
- TRANSACTION (0.0ms) begin transaction
530
- -------------------------------------------------------
531
- ActiveSortOrderTest: test_override_base_sort_order_only
532
- -------------------------------------------------------
533
-  (0.1ms) SELECT COUNT(*) FROM "posts"
534
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
535
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
536
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
537
- TRANSACTION (0.0ms) rollback transaction
538
- TRANSACTION (0.0ms) begin transaction
539
- ---------------------------------------------
540
- ActiveSortOrderTest: test_exposes_main_module
541
- ---------------------------------------------
542
- TRANSACTION (0.0ms) rollback transaction
543
-  (1.0ms) SELECT sqlite_version(*)
544
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
545
-  (0.0ms) SELECT sqlite_version(*)
546
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
547
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
548
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
549
-  (0.9ms) DELETE FROM posts;
550
-  (0.7ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
551
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
552
- TRANSACTION (0.0ms) begin transaction
553
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
554
- TRANSACTION (0.6ms) commit transaction
555
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
556
- TRANSACTION (0.0ms) begin transaction
557
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
558
- TRANSACTION (0.6ms) commit transaction
559
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
560
- TRANSACTION (0.0ms) begin transaction
561
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
562
- TRANSACTION (0.5ms) commit transaction
563
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
564
- TRANSACTION (0.0ms) begin transaction
565
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
566
- TRANSACTION (0.6ms) commit transaction
567
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
568
- TRANSACTION (0.0ms) begin transaction
569
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
570
- TRANSACTION (0.5ms) commit transaction
571
- TRANSACTION (0.0ms) begin transaction
572
- -----------------------------------------------
573
- ActiveSortOrderTest: test_sort_direction_errors
574
- -----------------------------------------------
575
- TRANSACTION (0.0ms) rollback transaction
576
- TRANSACTION (0.0ms) begin transaction
577
- -------------------------------------------------
578
- ActiveSortOrderTest: test_sort_on_multiple_fields
579
- -------------------------------------------------
580
-  (0.1ms) SELECT COUNT(*) FROM "posts"
581
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY b asc, a asc, posts.a ASC
582
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY b desc, a desc, posts.a ASC
583
- TRANSACTION (0.0ms) rollback transaction
584
- TRANSACTION (0.0ms) begin transaction
585
- ---------------------------------------------
586
- ActiveSortOrderTest: test_exposes_main_module
587
- ---------------------------------------------
588
- TRANSACTION (0.0ms) rollback transaction
589
- TRANSACTION (0.0ms) begin transaction
590
- ----------------------------------------------------
591
- ActiveSortOrderTest: test_class_base_sort_order_only
592
- ----------------------------------------------------
593
-  (0.1ms) SELECT COUNT(*) FROM "posts"
594
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
595
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
596
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
597
- PostWithBaseOrderBAndA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
598
- TRANSACTION (0.0ms) rollback transaction
599
- TRANSACTION (0.0ms) begin transaction
600
- -------------------------------------------------------------
601
- ActiveSortOrderTest: test_class_method_base_sort_order_errors
602
- -------------------------------------------------------------
603
- TRANSACTION (0.1ms) rollback transaction
604
- TRANSACTION (0.0ms) begin transaction
605
- -------------------------------------------------------
606
- ActiveSortOrderTest: test_override_base_sort_order_only
607
- -------------------------------------------------------
608
-  (0.1ms) SELECT COUNT(*) FROM "posts"
609
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
610
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
611
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
612
- TRANSACTION (0.0ms) rollback transaction
613
- TRANSACTION (0.0ms) begin transaction
614
- -------------------------------------------------------
615
- ActiveSortOrderTest: test_base_sort_order_default_value
616
- -------------------------------------------------------
617
- TRANSACTION (0.0ms) rollback transaction
618
- TRANSACTION (0.0ms) begin transaction
619
- ---------------------------------------------------------
620
- ActiveSortOrderTest: test_argument_base_sort_order_errors
621
- ---------------------------------------------------------
622
- TRANSACTION (0.1ms) rollback transaction
623
- TRANSACTION (0.0ms) begin transaction
624
- -----------------------------------------
625
- ActiveSortOrderTest: test_exposes_version
626
- -----------------------------------------
627
- TRANSACTION (0.0ms) rollback transaction
628
- TRANSACTION (0.0ms) begin transaction
629
- --------------------------------------------------
630
- ActiveSortOrderTest: test_base_sort_order_and_sort
631
- --------------------------------------------------
632
-  (0.1ms) SELECT COUNT(*) FROM "posts"
633
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
634
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
635
- TRANSACTION (0.0ms) rollback transaction
636
- TRANSACTION (0.0ms) begin transaction
637
- -----------------------------------------
638
- ActiveSortOrderTest: test_sort_str_errors
639
- -----------------------------------------
640
- TRANSACTION (0.0ms) rollback transaction
641
- TRANSACTION (0.0ms) begin transaction
642
- -----------------------------------
643
- ActiveSortOrderTest: test_sort_only
644
- -----------------------------------
645
-  (0.1ms) SELECT COUNT(*) FROM "posts"
646
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
647
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
648
- TRANSACTION (0.0ms) rollback transaction
649
-  (0.7ms) SELECT sqlite_version(*)
650
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
651
-  (0.1ms) SELECT sqlite_version(*)
652
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
653
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
654
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
655
-  (1.3ms) DELETE FROM posts;
656
-  (1.0ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
657
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
658
- TRANSACTION (0.0ms) begin transaction
659
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
660
- TRANSACTION (0.6ms) commit transaction
661
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
662
- TRANSACTION (0.0ms) begin transaction
663
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
664
- TRANSACTION (0.7ms) commit transaction
665
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
666
- TRANSACTION (0.0ms) begin transaction
667
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
668
- TRANSACTION (0.7ms) commit transaction
669
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
670
- TRANSACTION (0.0ms) begin transaction
671
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
672
- TRANSACTION (0.6ms) commit transaction
673
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
674
- TRANSACTION (0.0ms) begin transaction
675
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
676
- TRANSACTION (0.7ms) commit transaction
677
- TRANSACTION (0.0ms) begin transaction
678
- --------------------------------------------------
679
- ActiveSortOrderTest: test_base_sort_order_and_sort
680
- --------------------------------------------------
681
-  (0.1ms) SELECT COUNT(*) FROM "posts"
682
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
683
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
684
- TRANSACTION (0.0ms) rollback transaction
685
- TRANSACTION (0.0ms) begin transaction
686
- -------------------------------------------------------------
687
- ActiveSortOrderTest: test_class_method_base_sort_order_errors
688
- -------------------------------------------------------------
689
- TRANSACTION (0.0ms) rollback transaction
690
- TRANSACTION (0.0ms) begin transaction
691
- -----------------------------------
692
- ActiveSortOrderTest: test_sort_only
693
- -----------------------------------
694
-  (0.1ms) SELECT COUNT(*) FROM "posts"
695
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
696
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
697
- TRANSACTION (0.0ms) rollback transaction
698
- TRANSACTION (0.0ms) begin transaction
699
- -----------------------------------------
700
- ActiveSortOrderTest: test_exposes_version
701
- -----------------------------------------
702
- TRANSACTION (0.0ms) rollback transaction
703
- TRANSACTION (0.0ms) begin transaction
704
- -----------------------------------------------
705
- ActiveSortOrderTest: test_sort_direction_errors
706
- -----------------------------------------------
707
- TRANSACTION (0.0ms) rollback transaction
708
- TRANSACTION (0.0ms) begin transaction
709
- ---------------------------------------------------------
710
- ActiveSortOrderTest: test_argument_base_sort_order_errors
711
- ---------------------------------------------------------
712
- TRANSACTION (0.0ms) rollback transaction
713
- TRANSACTION (0.0ms) begin transaction
714
- -------------------------------------------------------
715
- ActiveSortOrderTest: test_override_base_sort_order_only
716
- -------------------------------------------------------
717
-  (0.1ms) SELECT COUNT(*) FROM "posts"
718
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
719
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
720
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
721
- TRANSACTION (0.0ms) rollback transaction
722
- TRANSACTION (0.0ms) begin transaction
723
- -------------------------------------------------
724
- ActiveSortOrderTest: test_sort_on_multiple_fields
725
- -------------------------------------------------
726
-  (0.1ms) SELECT COUNT(*) FROM "posts"
727
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY b asc, a asc, posts.a ASC
728
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY b desc, a desc, posts.a ASC
729
- TRANSACTION (0.0ms) rollback transaction
730
- TRANSACTION (0.0ms) begin transaction
731
- -----------------------------------------
732
- ActiveSortOrderTest: test_sort_str_errors
733
- -----------------------------------------
734
- TRANSACTION (0.0ms) rollback transaction
735
- TRANSACTION (0.0ms) begin transaction
736
- ---------------------------------------------
737
- ActiveSortOrderTest: test_exposes_main_module
738
- ---------------------------------------------
739
- TRANSACTION (0.0ms) rollback transaction
740
- TRANSACTION (0.0ms) begin transaction
741
- -------------------------------------------------------
742
- ActiveSortOrderTest: test_base_sort_order_default_value
743
- -------------------------------------------------------
744
- TRANSACTION (0.3ms) rollback transaction
745
- TRANSACTION (0.2ms) begin transaction
746
- ----------------------------------------------------
747
- ActiveSortOrderTest: test_class_base_sort_order_only
748
- ----------------------------------------------------
749
-  (0.7ms) SELECT COUNT(*) FROM "posts"
750
- PostWithBaseOrderA Load (0.4ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
751
- PostWithBaseOrderB Load (0.4ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
752
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
753
- PostWithBaseOrderBAndA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
754
- TRANSACTION (0.1ms) rollback transaction