enum_extensions 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 78bbd1ad31946c5992111778bd26fe0610901352
4
- data.tar.gz: 5c625cd8027bdb41b6620489af1db88f51f4ee86
2
+ SHA256:
3
+ metadata.gz: 86232e7a74a70ba7ca3b5aef4612061cffe2710ae6e9e196a79bfceb4e88e8e3
4
+ data.tar.gz: 254f2c254e15ab5d1c40911ba30e00395efc6c3086bf48ac3fa0d44284cc1f5c
5
5
  SHA512:
6
- metadata.gz: d79716ff157c0b6275b60cd8e3a14cf2372f984c1b4cbba8be25339e9612f43e91bd4bb131083e9d7d93f97eee29351783240108bb29eaff835583ae2c010f70
7
- data.tar.gz: 4f72e4348a43ff81c3f067652ccc02a235048aa77b6102a40e322eaba0025c0d8db0093131eb5efe0293f66db662a03af62657c0a7264538ec1c90d0917664e2
6
+ metadata.gz: 854061153494c66e883c69e635cd0b382aca5cca2423bd01c9ae42774ff1940b3d9f115a6d5634bc5a07bddd3dfcd19b9e1c7679eb75dc0e614d77eda04d6568
7
+ data.tar.gz: 37649094898ff671aad3dc05339d14a16a89cc5d66bb0d1438fcdaa7291ff76a49ac5c1de65c8b401a8a4b545203dfb654c8a1a33900326aecaf1ab6ba3b023b
@@ -1,3 +1,3 @@
1
1
  module EnumExtensions
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
Binary file
@@ -1,687 +1 @@
1
-  (0.2ms) begin transaction
2
- ------------------------------
3
- EnumExtensionsTest: test_truth
4
- ------------------------------
5
-  (0.1ms) rollback transaction
6
-  (0.2ms) begin transaction
7
- ------------------------------
8
- EnumExtensionsTest: test_truth
9
- ------------------------------
10
-  (0.1ms) rollback transaction
11
-  (0.2ms) begin transaction
12
- ------------------------------
13
- EnumExtensionsTest: test_truth
14
- ------------------------------
15
-  (0.1ms) rollback transaction
16
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
17
-  (0.1ms) SELECT version FROM "schema_migrations"
18
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
19
-  (1.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
20
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
21
-  (0.1ms) begin transaction
22
- SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2016-08-09 23:48:56 UTC], ["updated_at", 2016-08-09 23:48:56 UTC]]
23
-  (0.7ms) commit transaction
24
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
25
-  (0.2ms) begin transaction
26
-  (0.1ms) commit transaction
27
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
-  (0.1ms) begin transaction
29
- ------------------------------
30
- EnumExtensionsTest: test_truth
31
- ------------------------------
32
-  (0.1ms) rollback transaction
33
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
35
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
36
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
37
-  (0.1ms) SELECT version FROM "schema_migrations"
38
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
39
-  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
40
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
41
-  (0.1ms) begin transaction
42
- SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2016-08-09 23:49:34 UTC], ["updated_at", 2016-08-09 23:49:34 UTC]]
43
-  (0.6ms) commit transaction
44
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
45
-  (0.1ms) begin transaction
46
-  (0.1ms) commit transaction
47
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
48
-  (0.2ms) begin transaction
49
- ------------------------------
50
- EnumExtensionsTest: test_truth
51
- ------------------------------
52
-  (0.1ms) rollback transaction
53
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
54
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
55
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
56
-  (1.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "format" varchar, "status" integer DEFAULT 0, "read_status" integer DEFAULT 0, "nullable_status" integer)
57
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
58
-  (0.1ms) SELECT version FROM "schema_migrations"
59
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151002191153')
60
-  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
61
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
62
-  (0.1ms) begin transaction
63
- SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2016-08-09 23:53:44 UTC], ["updated_at", 2016-08-09 23:53:44 UTC]]
64
-  (0.6ms) commit transaction
65
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
66
-  (0.1ms) begin transaction
67
-  (0.1ms) commit transaction
68
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
69
-  (0.2ms) begin transaction
70
- Fixture Delete (1.2ms) DELETE FROM "books"
71
- Fixture Insert (0.2ms) INSERT INTO "books" ("id", "name", "format") VALUES (1, 'Agile Web Development with Rails', 'paperback')
72
- Fixture Insert (0.2ms) INSERT INTO "books" ("id", "name", "format") VALUES (2, 'Ruby for Rails', 'ebook')
73
-  (0.8ms) commit transaction
74
-  (0.1ms) begin transaction
75
- -----------------------------------------------------------------------------
76
- EnumExtensionsTest: test_enum_attribute_changed_from_old_status_to_new_status
77
- -----------------------------------------------------------------------------
78
- Book Load (0.3ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
79
-  (0.1ms) rollback transaction
80
-  (0.1ms) begin transaction
81
- ------------------------------------------------
82
- EnumExtensionsTest: test_enum_changed_attributes
83
- ------------------------------------------------
84
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
85
-  (0.2ms) rollback transaction
86
-  (13.8ms) begin transaction
87
- -------------------------------
88
- EnumExtensionsTest: test_module
89
- -------------------------------
90
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
91
-  (0.1ms) rollback transaction
92
-  (0.1ms) begin transaction
93
- ----------------------------------------------
94
- EnumExtensionsTest: test_enums_are_inheritable
95
- ----------------------------------------------
96
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
97
-  (0.1ms) SAVEPOINT active_record_1
98
- SQL (0.3ms) INSERT INTO "books" DEFAULT VALUES
99
-  (0.2ms) RELEASE SAVEPOINT active_record_1
100
-  (0.6ms) rollback transaction
101
-  (0.1ms) begin transaction
102
- --------------------------------------------------
103
- EnumExtensionsTest: test_enum_attribute_changed_to
104
- --------------------------------------------------
105
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
106
-  (0.1ms) rollback transaction
107
-  (0.1ms) begin transaction
108
- -------------------------------------
109
- EnumExtensionsTest: test_enum_changes
110
- -------------------------------------
111
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
112
-  (0.1ms) rollback transaction
113
-  (0.1ms) begin transaction
114
- -----------------------------------------------
115
- EnumExtensionsTest: test_enum_attribute_changed
116
- -----------------------------------------------
117
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
118
-  (0.1ms) rollback transaction
119
-  (0.1ms) begin transaction
120
- -------------------------------------------------------
121
- EnumExtensionsTest: test_constant_to_access_the_mapping
122
- -------------------------------------------------------
123
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
124
-  (0.1ms) rollback transaction
125
-  (0.1ms) begin transaction
126
- ------------------------------------------------------------------
127
- EnumExtensionsTest: test_assign_non_existing_value_raises_an_error
128
- ------------------------------------------------------------------
129
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
130
-  (0.1ms) rollback transaction
131
-  (0.1ms) begin transaction
132
- -----------------------------------------------------
133
- EnumExtensionsTest: test_enums_are_distinct_per_class
134
- -----------------------------------------------------
135
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
136
-  (0.2ms) SAVEPOINT active_record_1
137
- SQL (0.5ms) INSERT INTO "books" DEFAULT VALUES
138
-  (0.1ms) RELEASE SAVEPOINT active_record_1
139
-  (0.1ms) SAVEPOINT active_record_1
140
- SQL (0.6ms) INSERT INTO "books" DEFAULT VALUES
141
-  (0.2ms) RELEASE SAVEPOINT active_record_1
142
-  (0.8ms) rollback transaction
143
-  (0.1ms) begin transaction
144
- -------------------------------------------------
145
- EnumExtensionsTest: test_query_state_with_strings
146
- -------------------------------------------------
147
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
148
-  (0.1ms) rollback transaction
149
-  (0.1ms) begin transaction
150
- --------------------------------------------------------------------------------------------
151
- EnumExtensionsTest: test__before_type_cast_returns_the_enum_label_(required_for_form_fields)
152
- --------------------------------------------------------------------------------------------
153
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
154
-  (0.1ms) rollback transaction
155
-  (0.1ms) begin transaction
156
- -----------------------------------------
157
- EnumExtensionsTest: test_assign_nil_value
158
- -----------------------------------------
159
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
160
-  (0.1ms) rollback transaction
161
-  (0.1ms) begin transaction
162
- ---------------------------------------------
163
- EnumExtensionsTest: test_reserved_enum_values
164
- ---------------------------------------------
165
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
166
-  (0.1ms) rollback transaction
167
-  (0.1ms) begin transaction
168
- ------------------------------------------
169
- EnumExtensionsTest: test_direct_assignment
170
- ------------------------------------------
171
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
172
-  (0.1ms) rollback transaction
173
-  (0.1ms) begin transaction
174
- -------------------------------------------
175
- EnumExtensionsTest: test_enum_didn't_change
176
- -------------------------------------------
177
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
178
-  (0.1ms) rollback transaction
179
-  (0.2ms) begin transaction
180
- ----------------------------------------------------
181
- EnumExtensionsTest: test_enum_attribute_changed_from
182
- ----------------------------------------------------
183
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
184
-  (0.1ms) rollback transaction
185
-  (0.1ms) begin transaction
186
- -------------------------------------------------------
187
- EnumExtensionsTest: test_assign_long_empty_string_value
188
- -------------------------------------------------------
189
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
190
-  (0.1ms) rollback transaction
191
-  (0.1ms) begin transaction
192
- ------------------------------------------------------------
193
- EnumExtensionsTest: test_reverted_changes_that_are_not_dirty
194
- ------------------------------------------------------------
195
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
196
-  (0.1ms) rollback transaction
197
-  (0.1ms) begin transaction
198
- -----------------------------------------
199
- EnumExtensionsTest: test_update_by_setter
200
- -----------------------------------------
201
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
202
-  (0.1ms) SAVEPOINT active_record_1
203
- SQL (0.3ms) UPDATE "books" SET "status" = ? WHERE "books"."id" = ? [["status", 1], ["id", 1]]
204
-  (0.1ms) RELEASE SAVEPOINT active_record_1
205
-  (0.3ms) rollback transaction
206
-  (0.1ms) begin transaction
207
- --------------------------------------------
208
- EnumExtensionsTest: test_validate_uniqueness
209
- --------------------------------------------
210
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
211
- SQL (0.3ms) DELETE FROM "books"
212
-  (0.1ms) SAVEPOINT active_record_1
213
- Book Exists (0.1ms) SELECT 1 AS one FROM "books" WHERE "books"."status" = ? LIMIT ? [["status", 0], ["LIMIT", 1]]
214
- SQL (0.3ms) INSERT INTO "books" DEFAULT VALUES
215
-  (0.1ms) RELEASE SAVEPOINT active_record_1
216
- Book Exists (0.1ms) SELECT 1 AS one FROM "books" WHERE "books"."status" = ? LIMIT ? [["status", 1], ["LIMIT", 1]]
217
- Book Exists (0.1ms) SELECT 1 AS one FROM "books" WHERE "books"."status" = ? LIMIT ? [["status", 0], ["LIMIT", 1]]
218
-  (0.5ms) rollback transaction
219
-  (0.1ms) begin transaction
220
- -------------------------------------------
221
- EnumExtensionsTest: test_enum_attribute_was
222
- -------------------------------------------
223
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
224
-  (0.2ms) rollback transaction
225
-  (0.1ms) begin transaction
226
- -------------------------------------------------------
227
- EnumExtensionsTest: test_persist_changes_that_are_dirty
228
- -------------------------------------------------------
229
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
230
-  (0.1ms) rollback transaction
231
-  (0.1ms) begin transaction
232
- --------------------------------------------------
233
- EnumExtensionsTest: test_assign_empty_string_value
234
- --------------------------------------------------
235
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
236
-  (0.1ms) rollback transaction
237
-  (0.1ms) begin transaction
238
- -------------------------------------------------------------
239
- EnumExtensionsTest: test_validate_inclusion_of_value_in_array
240
- -------------------------------------------------------------
241
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
242
- SQL (0.3ms) DELETE FROM "books"
243
-  (0.4ms) rollback transaction
244
-  (0.1ms) begin transaction
245
- --------------------------------------------
246
- EnumExtensionsTest: test_reserved_enum_names
247
- --------------------------------------------
248
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
249
-  (0.1ms) rollback transaction
250
-  (0.1ms) begin transaction
251
- ----------------------------------------------------------------------------------------
252
- EnumExtensionsTest: test_reverted_changes_are_not_dirty_going_from_nil_to_value_and_back
253
- ----------------------------------------------------------------------------------------
254
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
255
-  (0.2ms) SAVEPOINT active_record_1
256
- SQL (0.6ms) INSERT INTO "books" DEFAULT VALUES
257
-  (0.2ms) RELEASE SAVEPOINT active_record_1
258
-  (0.9ms) rollback transaction
259
-  (0.2ms) begin transaction
260
- --------------------------------------------
261
- EnumExtensionsTest: test_assign_string_value
262
- --------------------------------------------
263
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
264
-  (0.1ms) rollback transaction
265
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
266
-  (0.1ms) begin transaction
267
- Fixture Delete (0.5ms) DELETE FROM "books"
268
- Fixture Insert (0.4ms) INSERT INTO "books" ("id", "name", "format") VALUES (1, 'Agile Web Development with Rails', 'paperback')
269
- Fixture Insert (0.1ms) INSERT INTO "books" ("id", "name", "format") VALUES (2, 'Ruby for Rails', 'ebook')
270
-  (0.6ms) commit transaction
271
-  (0.1ms) begin transaction
272
- ----------------------------------------------
273
- EnumExtensionsTest: test_enums_are_inheritable
274
- ----------------------------------------------
275
- Book Load (0.3ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
276
-  (0.1ms) SAVEPOINT active_record_1
277
- SQL (0.4ms) INSERT INTO "books" DEFAULT VALUES
278
-  (0.1ms) RELEASE SAVEPOINT active_record_1
279
-  (0.5ms) rollback transaction
280
-  (0.1ms) begin transaction
281
- -----------------------------------------
282
- EnumExtensionsTest: test_update_by_setter
283
- -----------------------------------------
284
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
285
-  (0.1ms) SAVEPOINT active_record_1
286
- SQL (0.5ms) UPDATE "books" SET "status" = ? WHERE "books"."id" = ? [["status", 1], ["id", 1]]
287
-  (0.1ms) RELEASE SAVEPOINT active_record_1
288
-  (0.5ms) rollback transaction
289
-  (0.2ms) begin transaction
290
- ------------------------------------------
291
- EnumExtensionsTest: test_direct_assignment
292
- ------------------------------------------
293
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
294
-  (0.1ms) rollback transaction
295
-  (0.1ms) begin transaction
296
- -------------------------------------------------------
297
- EnumExtensionsTest: test_assign_long_empty_string_value
298
- -------------------------------------------------------
299
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
300
-  (0.1ms) rollback transaction
301
-  (0.1ms) begin transaction
302
- -------------------------------------------------
303
- EnumExtensionsTest: test_query_state_with_strings
304
- -------------------------------------------------
305
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
306
-  (0.1ms) rollback transaction
307
-  (0.1ms) begin transaction
308
- ----------------------------------------------------------------------------------------
309
- EnumExtensionsTest: test_reverted_changes_are_not_dirty_going_from_nil_to_value_and_back
310
- ----------------------------------------------------------------------------------------
311
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
312
-  (0.1ms) SAVEPOINT active_record_1
313
- SQL (0.5ms) INSERT INTO "books" DEFAULT VALUES
314
-  (0.1ms) RELEASE SAVEPOINT active_record_1
315
-  (0.3ms) rollback transaction
316
-  (0.1ms) begin transaction
317
- ------------------------------------------------------------------
318
- EnumExtensionsTest: test_assign_non_existing_value_raises_an_error
319
- ------------------------------------------------------------------
320
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
321
-  (0.1ms) rollback transaction
322
-  (0.1ms) begin transaction
323
- -------------------------------------
324
- EnumExtensionsTest: test_enum_changes
325
- -------------------------------------
326
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
327
-  (0.1ms) rollback transaction
328
-  (0.2ms) begin transaction
329
- ----------------------------------------------------
330
- EnumExtensionsTest: test_enum_attribute_changed_from
331
- ----------------------------------------------------
332
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
333
-  (0.1ms) rollback transaction
334
-  (0.1ms) begin transaction
335
- ------------------------------------------------------------
336
- EnumExtensionsTest: test_reverted_changes_that_are_not_dirty
337
- ------------------------------------------------------------
338
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
339
-  (0.2ms) rollback transaction
340
-  (0.1ms) begin transaction
341
- -----------------------------------------------------------------------------
342
- EnumExtensionsTest: test_enum_attribute_changed_from_old_status_to_new_status
343
- -----------------------------------------------------------------------------
344
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
345
-  (0.1ms) rollback transaction
346
-  (0.1ms) begin transaction
347
- --------------------------------------------------------------------------------------------
348
- EnumExtensionsTest: test__before_type_cast_returns_the_enum_label_(required_for_form_fields)
349
- --------------------------------------------------------------------------------------------
350
- Book Load (1.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
351
-  (0.1ms) rollback transaction
352
-  (0.1ms) begin transaction
353
- -----------------------------------------------
354
- EnumExtensionsTest: test_enum_attribute_changed
355
- -----------------------------------------------
356
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
357
-  (0.1ms) rollback transaction
358
-  (0.1ms) begin transaction
359
- --------------------------------------------------
360
- EnumExtensionsTest: test_enum_attribute_changed_to
361
- --------------------------------------------------
362
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
363
-  (0.1ms) rollback transaction
364
-  (0.1ms) begin transaction
365
- --------------------------------------------
366
- EnumExtensionsTest: test_assign_string_value
367
- --------------------------------------------
368
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
369
-  (0.1ms) rollback transaction
370
-  (0.1ms) begin transaction
371
- --------------------------------------------------
372
- EnumExtensionsTest: test_assign_empty_string_value
373
- --------------------------------------------------
374
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
375
-  (0.1ms) rollback transaction
376
-  (0.1ms) begin transaction
377
- -----------------------------------------------------
378
- EnumExtensionsTest: test_enums_are_distinct_per_class
379
- -----------------------------------------------------
380
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
381
-  (0.1ms) SAVEPOINT active_record_1
382
- SQL (0.4ms) INSERT INTO "books" DEFAULT VALUES
383
-  (0.1ms) RELEASE SAVEPOINT active_record_1
384
-  (0.1ms) SAVEPOINT active_record_1
385
- SQL (0.5ms) INSERT INTO "books" DEFAULT VALUES
386
-  (0.1ms) RELEASE SAVEPOINT active_record_1
387
-  (0.6ms) rollback transaction
388
-  (0.1ms) begin transaction
389
- -------------------------------------------
390
- EnumExtensionsTest: test_enum_attribute_was
391
- -------------------------------------------
392
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
393
-  (0.2ms) rollback transaction
394
-  (0.1ms) begin transaction
395
- ---------------------------------------------
396
- EnumExtensionsTest: test_reserved_enum_values
397
- ---------------------------------------------
398
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
399
-  (0.1ms) rollback transaction
400
-  (0.1ms) begin transaction
401
- -----------------------------------------
402
- EnumExtensionsTest: test_assign_nil_value
403
- -----------------------------------------
404
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
405
-  (0.1ms) rollback transaction
406
-  (0.1ms) begin transaction
407
- -------------------------------------------------------
408
- EnumExtensionsTest: test_persist_changes_that_are_dirty
409
- -------------------------------------------------------
410
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
411
-  (0.1ms) rollback transaction
412
-  (0.1ms) begin transaction
413
- -------------------------------------------------------------
414
- EnumExtensionsTest: test_validate_inclusion_of_value_in_array
415
- -------------------------------------------------------------
416
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
417
- SQL (0.4ms) DELETE FROM "books"
418
-  (0.5ms) rollback transaction
419
-  (0.1ms) begin transaction
420
- --------------------------------------------
421
- EnumExtensionsTest: test_validate_uniqueness
422
- --------------------------------------------
423
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
424
- SQL (0.4ms) DELETE FROM "books"
425
-  (0.1ms) SAVEPOINT active_record_1
426
- Book Exists (0.1ms) SELECT 1 AS one FROM "books" WHERE "books"."status" = ? LIMIT ? [["status", 0], ["LIMIT", 1]]
427
- SQL (0.4ms) INSERT INTO "books" DEFAULT VALUES
428
-  (0.1ms) RELEASE SAVEPOINT active_record_1
429
- Book Exists (0.2ms) SELECT 1 AS one FROM "books" WHERE "books"."status" = ? LIMIT ? [["status", 1], ["LIMIT", 1]]
430
- Book Exists (0.1ms) SELECT 1 AS one FROM "books" WHERE "books"."status" = ? LIMIT ? [["status", 0], ["LIMIT", 1]]
431
-  (0.6ms) rollback transaction
432
-  (0.1ms) begin transaction
433
- ------------------------------------------------
434
- EnumExtensionsTest: test_enum_changed_attributes
435
- ------------------------------------------------
436
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
437
-  (0.2ms) rollback transaction
438
-  (0.1ms) begin transaction
439
- -------------------------------------------
440
- EnumExtensionsTest: test_enum_didn't_change
441
- -------------------------------------------
442
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
443
-  (0.1ms) rollback transaction
444
-  (0.1ms) begin transaction
445
- -------------------------------
446
- EnumExtensionsTest: test_module
447
- -------------------------------
448
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
449
-  (0.1ms) rollback transaction
450
-  (0.1ms) begin transaction
451
- --------------------------------------------
452
- EnumExtensionsTest: test_reserved_enum_names
453
- --------------------------------------------
454
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
455
-  (0.1ms) rollback transaction
456
-  (0.2ms) begin transaction
457
- -------------------------------------------------------
458
- EnumExtensionsTest: test_constant_to_access_the_mapping
459
- -------------------------------------------------------
460
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
461
-  (0.1ms) rollback transaction
462
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
463
-  (0.2ms) begin transaction
464
- Fixture Delete (0.7ms) DELETE FROM "books"
465
- Fixture Insert (0.5ms) INSERT INTO "books" ("id", "name", "format") VALUES (1, 'Agile Web Development with Rails', 'paperback')
466
- Fixture Insert (0.1ms) INSERT INTO "books" ("id", "name", "format") VALUES (2, 'Ruby for Rails', 'ebook')
467
-  (0.8ms) commit transaction
468
-  (0.1ms) begin transaction
469
- -------------------------------------------------------
470
- EnumExtensionsTest: test_assign_long_empty_string_value
471
- -------------------------------------------------------
472
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
473
-  (0.1ms) rollback transaction
474
-  (0.1ms) begin transaction
475
- -------------------------------------------
476
- EnumExtensionsTest: test_enum_attribute_was
477
- -------------------------------------------
478
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
479
-  (0.3ms) rollback transaction
480
-  (0.2ms) begin transaction
481
- -----------------------------------------------------------------------------
482
- EnumExtensionsTest: test_enum_attribute_changed_from_old_status_to_new_status
483
- -----------------------------------------------------------------------------
484
- Book Load (0.3ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
485
-  (0.2ms) rollback transaction
486
-  (0.2ms) begin transaction
487
- ---------------------------------------------
488
- EnumExtensionsTest: test_reserved_enum_values
489
- ---------------------------------------------
490
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
491
-  (0.3ms) rollback transaction
492
-  (0.2ms) begin transaction
493
- ----------------------------------------------------
494
- EnumExtensionsTest: test_enum_attribute_changed_from
495
- ----------------------------------------------------
496
- Book Load (0.3ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
497
-  (0.2ms) rollback transaction
498
-  (0.1ms) begin transaction
499
- ------------------------------------------
500
- EnumExtensionsTest: test_direct_assignment
501
- ------------------------------------------
502
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
503
-  (0.1ms) rollback transaction
504
-  (0.1ms) begin transaction
505
- -------------------------------------------------------
506
- EnumExtensionsTest: test_constant_to_access_the_mapping
507
- -------------------------------------------------------
508
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
509
-  (0.1ms) rollback transaction
510
-  (0.1ms) begin transaction
511
- -------------------------------------------------------------
512
- EnumExtensionsTest: test_validate_inclusion_of_value_in_array
513
- -------------------------------------------------------------
514
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
515
- SQL (0.4ms) DELETE FROM "books"
516
-  (0.5ms) rollback transaction
517
-  (0.1ms) begin transaction
518
- --------------------------------------------------
519
- EnumExtensionsTest: test_assign_empty_string_value
520
- --------------------------------------------------
521
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
522
-  (0.1ms) rollback transaction
523
-  (0.1ms) begin transaction
524
- -----------------------------------------------
525
- EnumExtensionsTest: test_enum_attribute_changed
526
- -----------------------------------------------
527
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
528
-  (0.1ms) rollback transaction
529
-  (0.1ms) begin transaction
530
- -------------------------------
531
- EnumExtensionsTest: test_module
532
- -------------------------------
533
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
534
-  (0.1ms) rollback transaction
535
-  (0.1ms) begin transaction
536
- -----------------------------------------
537
- EnumExtensionsTest: test_update_by_setter
538
- -----------------------------------------
539
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
540
-  (0.1ms) SAVEPOINT active_record_1
541
- SQL (0.4ms) UPDATE "books" SET "status" = ? WHERE "books"."id" = ? [["status", 1], ["id", 1]]
542
-  (0.1ms) RELEASE SAVEPOINT active_record_1
543
-  (0.4ms) rollback transaction
544
-  (0.1ms) begin transaction
545
- -----------------------------------------------------
546
- EnumExtensionsTest: test_enums_are_distinct_per_class
547
- -----------------------------------------------------
548
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
549
-  (0.1ms) SAVEPOINT active_record_1
550
- SQL (0.3ms) INSERT INTO "books" DEFAULT VALUES
551
-  (0.1ms) RELEASE SAVEPOINT active_record_1
552
-  (0.1ms) SAVEPOINT active_record_1
553
- SQL (0.4ms) INSERT INTO "books" DEFAULT VALUES
554
-  (0.1ms) RELEASE SAVEPOINT active_record_1
555
-  (0.5ms) rollback transaction
556
-  (0.1ms) begin transaction
557
- -----------------------------------------
558
- EnumExtensionsTest: test_assign_nil_value
559
- -----------------------------------------
560
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
561
-  (0.1ms) rollback transaction
562
-  (0.1ms) begin transaction
563
- --------------------------------------------
564
- EnumExtensionsTest: test_assign_string_value
565
- --------------------------------------------
566
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
567
-  (0.1ms) rollback transaction
568
-  (0.1ms) begin transaction
569
- -------------------------------------------
570
- EnumExtensionsTest: test_enum_didn't_change
571
- -------------------------------------------
572
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
573
-  (0.1ms) rollback transaction
574
-  (0.1ms) begin transaction
575
- -------------------------------------------------
576
- EnumExtensionsTest: test_query_state_with_strings
577
- -------------------------------------------------
578
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
579
-  (0.1ms) rollback transaction
580
-  (0.1ms) begin transaction
581
- --------------------------------------------------------------------------------------------
582
- EnumExtensionsTest: test__before_type_cast_returns_the_enum_label_(required_for_form_fields)
583
- --------------------------------------------------------------------------------------------
584
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
585
-  (0.1ms) rollback transaction
586
-  (0.1ms) begin transaction
587
- -------------------------------------
588
- EnumExtensionsTest: test_enum_changes
589
- -------------------------------------
590
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
591
-  (0.1ms) rollback transaction
592
-  (0.1ms) begin transaction
593
- ----------------------------------------------------------------------------------------
594
- EnumExtensionsTest: test_reverted_changes_are_not_dirty_going_from_nil_to_value_and_back
595
- ----------------------------------------------------------------------------------------
596
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
597
-  (0.1ms) SAVEPOINT active_record_1
598
- SQL (0.3ms) INSERT INTO "books" DEFAULT VALUES
599
-  (0.1ms) RELEASE SAVEPOINT active_record_1
600
-  (0.3ms) rollback transaction
601
-  (0.1ms) begin transaction
602
- --------------------------------------------
603
- EnumExtensionsTest: test_validate_uniqueness
604
- --------------------------------------------
605
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
606
- SQL (0.3ms) DELETE FROM "books"
607
-  (0.1ms) SAVEPOINT active_record_1
608
- Book Exists (0.1ms) SELECT 1 AS one FROM "books" WHERE "books"."status" = ? LIMIT ? [["status", 0], ["LIMIT", 1]]
609
- SQL (0.3ms) INSERT INTO "books" DEFAULT VALUES
610
-  (0.1ms) RELEASE SAVEPOINT active_record_1
611
- Book Exists (0.1ms) SELECT 1 AS one FROM "books" WHERE "books"."status" = ? LIMIT ? [["status", 1], ["LIMIT", 1]]
612
- Book Exists (0.1ms) SELECT 1 AS one FROM "books" WHERE "books"."status" = ? LIMIT ? [["status", 0], ["LIMIT", 1]]
613
-  (0.5ms) rollback transaction
614
-  (0.1ms) begin transaction
615
- -------------------------------------------------------
616
- EnumExtensionsTest: test_persist_changes_that_are_dirty
617
- -------------------------------------------------------
618
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
619
-  (0.1ms) rollback transaction
620
-  (0.1ms) begin transaction
621
- ------------------------------------------------------------
622
- EnumExtensionsTest: test_reverted_changes_that_are_not_dirty
623
- ------------------------------------------------------------
624
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
625
-  (0.1ms) rollback transaction
626
-  (0.1ms) begin transaction
627
- --------------------------------------------
628
- EnumExtensionsTest: test_reserved_enum_names
629
- --------------------------------------------
630
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
631
-  (0.1ms) rollback transaction
632
-  (0.1ms) begin transaction
633
- --------------------------------------------------
634
- EnumExtensionsTest: test_enum_attribute_changed_to
635
- --------------------------------------------------
636
- Book Load (0.6ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
637
-  (0.8ms) rollback transaction
638
-  (0.2ms) begin transaction
639
- ------------------------------------------------
640
- EnumExtensionsTest: test_enum_changed_attributes
641
- ------------------------------------------------
642
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
643
-  (0.5ms) rollback transaction
644
-  (0.4ms) begin transaction
645
- ------------------------------------------------------------------
646
- EnumExtensionsTest: test_assign_non_existing_value_raises_an_error
647
- ------------------------------------------------------------------
648
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
649
-  (0.2ms) rollback transaction
650
-  (0.1ms) begin transaction
651
- ----------------------------------------------
652
- EnumExtensionsTest: test_enums_are_inheritable
653
- ----------------------------------------------
654
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
655
-  (0.1ms) SAVEPOINT active_record_1
656
- SQL (0.5ms) INSERT INTO "books" DEFAULT VALUES
657
-  (0.1ms) RELEASE SAVEPOINT active_record_1
658
-  (0.4ms) rollback transaction
659
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
660
-  (0.1ms) begin transaction
661
- Fixture Delete (0.6ms) DELETE FROM "books"
662
- Fixture Insert (0.4ms) INSERT INTO "books" ("id", "name", "format") VALUES (1, 'Agile Web Development with Rails', 'paperback')
663
- Fixture Insert (0.1ms) INSERT INTO "books" ("id", "name", "format") VALUES (2, 'Ruby for Rails', 'ebook')
664
-  (0.7ms) commit transaction
665
-  (0.0ms) begin transaction
666
- --------------------------------------------
667
- EnumExtensionsTest: test_reserved_enum_names
668
- --------------------------------------------
669
- Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
670
-  (0.2ms) rollback transaction
671
-  (0.1ms) begin transaction
672
- -------------------------------------------------
673
- EnumExtensionsTest: test_query_state_with_strings
674
- -------------------------------------------------
675
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
676
-  (0.1ms) rollback transaction
677
-  (0.1ms) begin transaction
678
- --------------------------------------------------------------------------------------------
679
- EnumExtensionsTest: test__before_type_cast_returns_the_enum_label_(required_for_form_fields)
680
- --------------------------------------------------------------------------------------------
681
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
682
-  (0.1ms) rollback transaction
683
-  (0.1ms) begin transaction
684
- -------------------------------------------
685
- EnumExtensionsTest: test_enum_attribute_was
686
- -------------------------------------------
687
- Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1
+  (6.3ms) SELECT sqlite_version(*)
@@ -45,7 +45,6 @@ class EnumExtensionsTest < ActiveSupport::TestCase
45
45
  test "enum attribute was" do
46
46
  old_status = @book.status
47
47
  @book.status = :published
48
- byebug
49
48
  assert_equal old_status, @book.attribute_was(:status)
50
49
  end
51
50
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesús Dugarte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-10 00:00:00.000000000 Z
11
+ date: 2020-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: '6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
33
+ version: '6'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.0'
40
+ version: '6'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -96,11 +96,9 @@ files:
96
96
  - test/dummy/config/locales/en.yml
97
97
  - test/dummy/config/routes.rb
98
98
  - test/dummy/config/secrets.yml
99
- - test/dummy/db/development.sqlite3
100
99
  - test/dummy/db/migrate/20151002191153_create_books.rb
101
100
  - test/dummy/db/schema.rb
102
101
  - test/dummy/db/test.sqlite3
103
- - test/dummy/log/development.log
104
102
  - test/dummy/log/test.log
105
103
  - test/dummy/public/404.html
106
104
  - test/dummy/public/422.html
@@ -128,52 +126,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
126
  - !ruby/object:Gem::Version
129
127
  version: '0'
130
128
  requirements: []
131
- rubyforge_project:
132
- rubygems_version: 2.5.1
129
+ rubygems_version: 3.0.6
133
130
  signing_key:
134
131
  specification_version: 4
135
132
  summary: Scopeless enums, and some syntactic sugar for string enums
136
133
  test_files:
134
+ - test/dummy/app/models/book.rb
135
+ - test/dummy/app/controllers/application_controller.rb
136
+ - test/dummy/app/views/layouts/application.html.erb
137
137
  - test/dummy/app/assets/javascripts/application.js
138
138
  - test/dummy/app/assets/stylesheets/application.css
139
- - test/dummy/app/controllers/application_controller.rb
140
139
  - test/dummy/app/helpers/application_helper.rb
141
- - test/dummy/app/models/book.rb
142
- - test/dummy/app/views/layouts/application.html.erb
143
- - test/dummy/bin/bundle
144
- - test/dummy/bin/rails
145
140
  - test/dummy/bin/rake
146
141
  - test/dummy/bin/setup
147
- - test/dummy/config/application.rb
148
- - test/dummy/config/boot.rb
149
- - test/dummy/config/database.yml
150
- - test/dummy/config/environment.rb
151
- - test/dummy/config/environments/development.rb
142
+ - test/dummy/bin/bundle
143
+ - test/dummy/bin/rails
144
+ - test/dummy/config/secrets.yml
145
+ - test/dummy/config/routes.rb
146
+ - test/dummy/config/locales/en.yml
152
147
  - test/dummy/config/environments/production.rb
148
+ - test/dummy/config/environments/development.rb
153
149
  - test/dummy/config/environments/test.rb
154
- - test/dummy/config/initializers/assets.rb
150
+ - test/dummy/config/environment.rb
151
+ - test/dummy/config/application.rb
152
+ - test/dummy/config/database.yml
153
+ - test/dummy/config/boot.rb
155
154
  - test/dummy/config/initializers/backtrace_silencers.rb
156
- - test/dummy/config/initializers/cookies_serializer.rb
157
- - test/dummy/config/initializers/filter_parameter_logging.rb
158
- - test/dummy/config/initializers/inflections.rb
159
155
  - test/dummy/config/initializers/mime_types.rb
156
+ - test/dummy/config/initializers/filter_parameter_logging.rb
160
157
  - test/dummy/config/initializers/session_store.rb
161
158
  - test/dummy/config/initializers/wrap_parameters.rb
162
- - test/dummy/config/locales/en.yml
163
- - test/dummy/config/routes.rb
164
- - test/dummy/config/secrets.yml
159
+ - test/dummy/config/initializers/assets.rb
160
+ - test/dummy/config/initializers/cookies_serializer.rb
161
+ - test/dummy/config/initializers/inflections.rb
165
162
  - test/dummy/config.ru
166
- - test/dummy/db/development.sqlite3
167
- - test/dummy/db/migrate/20151002191153_create_books.rb
163
+ - test/dummy/Rakefile
164
+ - test/dummy/public/favicon.ico
165
+ - test/dummy/public/422.html
166
+ - test/dummy/public/500.html
167
+ - test/dummy/public/404.html
168
168
  - test/dummy/db/schema.rb
169
169
  - test/dummy/db/test.sqlite3
170
- - test/dummy/log/development.log
170
+ - test/dummy/db/migrate/20151002191153_create_books.rb
171
171
  - test/dummy/log/test.log
172
- - test/dummy/public/404.html
173
- - test/dummy/public/422.html
174
- - test/dummy/public/500.html
175
- - test/dummy/public/favicon.ico
176
- - test/dummy/Rakefile
177
172
  - test/dummy/README.rdoc
178
173
  - test/enum_extensions_test.rb
179
174
  - test/fixtures/books.yml
Binary file
@@ -1,8 +0,0 @@
1
- DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <top (required)> at /Users/jd/Dropbox/rails/activerecord-enum-extensions/test/dummy/config/environment.rb:5)
2
-  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3
-  (1.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
5
-  (0.1ms) begin transaction
6
- SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2016-08-09 23:48:44 UTC], ["updated_at", 2016-08-09 23:48:44 UTC]]
7
-  (0.8ms) commit transaction
8
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"