nested_store_attributes 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +32 -0
  5. data/lib/nested_store_attributes.rb +3 -0
  6. data/lib/nested_store_attributes/accepts_store_attributes.rb +248 -0
  7. data/lib/nested_store_attributes/version.rb +3 -0
  8. data/lib/tasks/nested_json_attributes_tasks.rake +4 -0
  9. data/test/dummy/README.rdoc +28 -0
  10. data/test/dummy/Rakefile +6 -0
  11. data/test/dummy/app/assets/javascripts/application.js +13 -0
  12. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  13. data/test/dummy/app/controllers/application_controller.rb +5 -0
  14. data/test/dummy/app/helpers/application_helper.rb +2 -0
  15. data/test/dummy/app/models/person.rb +9 -0
  16. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  17. data/test/dummy/bin/bundle +3 -0
  18. data/test/dummy/bin/rails +4 -0
  19. data/test/dummy/bin/rake +4 -0
  20. data/test/dummy/config.ru +4 -0
  21. data/test/dummy/config/application.rb +23 -0
  22. data/test/dummy/config/boot.rb +5 -0
  23. data/test/dummy/config/database.yml +25 -0
  24. data/test/dummy/config/environment.rb +5 -0
  25. data/test/dummy/config/environments/development.rb +37 -0
  26. data/test/dummy/config/environments/production.rb +78 -0
  27. data/test/dummy/config/environments/test.rb +39 -0
  28. data/test/dummy/config/initializers/assets.rb +8 -0
  29. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  30. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  31. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  32. data/test/dummy/config/initializers/inflections.rb +16 -0
  33. data/test/dummy/config/initializers/mime_types.rb +4 -0
  34. data/test/dummy/config/initializers/session_store.rb +3 -0
  35. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  36. data/test/dummy/config/locales/en.yml +23 -0
  37. data/test/dummy/config/routes.rb +56 -0
  38. data/test/dummy/config/secrets.yml +22 -0
  39. data/test/dummy/db/development.sqlite3 +0 -0
  40. data/test/dummy/db/migrate/20141016114846_create_people.rb +11 -0
  41. data/test/dummy/db/schema.rb +24 -0
  42. data/test/dummy/db/test.sqlite3 +0 -0
  43. data/test/dummy/log/development.log +16 -0
  44. data/test/dummy/log/test.log +1184 -0
  45. data/test/dummy/public/404.html +67 -0
  46. data/test/dummy/public/422.html +67 -0
  47. data/test/dummy/public/500.html +66 -0
  48. data/test/dummy/public/favicon.ico +0 -0
  49. data/test/dummy/test/fixtures/people.yml +11 -0
  50. data/test/dummy/test/models/person_test.rb +7 -0
  51. data/test/nested_json_attributes_test.rb +70 -0
  52. data/test/test_helper.rb +15 -0
  53. metadata +170 -0
Binary file
@@ -0,0 +1,16 @@
1
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.3ms) select sqlite_version(*)
3
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreatePeople (20141016114846)
6
+  (0.1ms) begin transaction
7
+  (0.6ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "books" text, "cars" text, "created_at" datetime, "updated_at" datetime)
8
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141016114846"]]
9
+  (1.1ms) commit transaction
10
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+  (2.8ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "books" text, "cars" text, "created_at" datetime, "updated_at" datetime) 
12
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
13
+  (0.1ms) select sqlite_version(*)
14
+  (18.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
15
+  (0.2ms) SELECT version FROM "schema_migrations"
16
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141016114846')
@@ -0,0 +1,1184 @@
1
+  (0.2ms) begin transaction
2
+ -----------------------------------------------------------------------------
3
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
4
+ -----------------------------------------------------------------------------
5
+  (0.1ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+ -------------------------------------
8
+ NestedStoreAttributesTest: test_truth
9
+ -------------------------------------
10
+  (0.1ms) rollback transaction
11
+  (0.1ms) begin transaction
12
+ -----------------------------------------------------------------------------
13
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
14
+ -----------------------------------------------------------------------------
15
+  (0.1ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+ -------------------------------------
18
+ NestedStoreAttributesTest: test_truth
19
+ -------------------------------------
20
+  (0.0ms) rollback transaction
21
+  (0.1ms) begin transaction
22
+ -----------------------------------------------------------------------------
23
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
24
+ -----------------------------------------------------------------------------
25
+  (0.1ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ -------------------------------------
28
+ NestedStoreAttributesTest: test_truth
29
+ -------------------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.1ms) begin transaction
32
+ -----------------------------------------------------------------------------
33
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
34
+ -----------------------------------------------------------------------------
35
+  (0.0ms) rollback transaction
36
+  (0.1ms) begin transaction
37
+ -------------------------------------
38
+ NestedStoreAttributesTest: test_truth
39
+ -------------------------------------
40
+  (0.0ms) rollback transaction
41
+  (0.1ms) begin transaction
42
+ -----------------------------------------------------------------------------
43
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
44
+ -----------------------------------------------------------------------------
45
+  (0.1ms) rollback transaction
46
+  (0.1ms) begin transaction
47
+ ----------------------------------------------------------------------
48
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
49
+ ----------------------------------------------------------------------
50
+  (0.1ms) rollback transaction
51
+  (0.1ms) begin transaction
52
+ -----------------------------------------------------------------------------
53
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
54
+ -----------------------------------------------------------------------------
55
+  (0.1ms) rollback transaction
56
+  (0.1ms) begin transaction
57
+ -------------------------------------------------------
58
+ NestedStoreAttributesTest: test_adds_new_books_as_array
59
+ -------------------------------------------------------
60
+  (0.0ms) rollback transaction
61
+  (0.1ms) begin transaction
62
+ ------------------------------------------------------
63
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
64
+ ------------------------------------------------------
65
+  (0.1ms) rollback transaction
66
+  (0.1ms) begin transaction
67
+ -----------------------------------------------------------------------------
68
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
69
+ -----------------------------------------------------------------------------
70
+  (0.1ms) rollback transaction
71
+  (0.1ms) begin transaction
72
+ ----------------------------------------------------------------------------
73
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
74
+ ----------------------------------------------------------------------------
75
+  (0.1ms) rollback transaction
76
+  (0.1ms) begin transaction
77
+ ------------------------------------------------------
78
+ NestedStoreAttributesTest: test_removes_existing_books
79
+ ------------------------------------------------------
80
+  (0.0ms) rollback transaction
81
+  (0.1ms) begin transaction
82
+ ------------------------------------------------------
83
+ NestedStoreAttributesTest: test_updates_existing_books
84
+ ------------------------------------------------------
85
+  (0.0ms) rollback transaction
86
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
87
+  (0.1ms) begin transaction
88
+ ----------------------------------------------------------------------
89
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
90
+ ----------------------------------------------------------------------
91
+  (0.1ms) rollback transaction
92
+  (0.1ms) begin transaction
93
+ -----------------------------------------------------------------------------
94
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
95
+ -----------------------------------------------------------------------------
96
+  (0.1ms) rollback transaction
97
+  (0.1ms) begin transaction
98
+ -------------------------------------------------------
99
+ NestedStoreAttributesTest: test_adds_new_books_as_array
100
+ -------------------------------------------------------
101
+  (0.1ms) rollback transaction
102
+  (0.1ms) begin transaction
103
+ ------------------------------------------------------
104
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
105
+ ------------------------------------------------------
106
+  (0.1ms) rollback transaction
107
+  (0.1ms) begin transaction
108
+ -----------------------------------------------------------------------------
109
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
110
+ -----------------------------------------------------------------------------
111
+  (0.1ms) rollback transaction
112
+  (0.1ms) begin transaction
113
+ ----------------------------------------------------------------------------
114
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
115
+ ----------------------------------------------------------------------------
116
+  (0.1ms) rollback transaction
117
+  (0.1ms) begin transaction
118
+ ------------------------------------------------------
119
+ NestedStoreAttributesTest: test_removes_existing_books
120
+ ------------------------------------------------------
121
+  (0.0ms) rollback transaction
122
+  (0.1ms) begin transaction
123
+ ------------------------------------------------------
124
+ NestedStoreAttributesTest: test_updates_existing_books
125
+ ------------------------------------------------------
126
+  (0.1ms) rollback transaction
127
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
128
+  (0.1ms) begin transaction
129
+ ----------------------------------------------------------------------
130
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
131
+ ----------------------------------------------------------------------
132
+  (0.1ms) rollback transaction
133
+  (0.1ms) begin transaction
134
+ -----------------------------------------------------------------------------
135
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
136
+ -----------------------------------------------------------------------------
137
+  (0.1ms) rollback transaction
138
+  (0.1ms) begin transaction
139
+ -------------------------------------------------------
140
+ NestedStoreAttributesTest: test_adds_new_books_as_array
141
+ -------------------------------------------------------
142
+  (0.1ms) rollback transaction
143
+  (0.1ms) begin transaction
144
+ ------------------------------------------------------
145
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
146
+ ------------------------------------------------------
147
+  (0.1ms) rollback transaction
148
+  (0.1ms) begin transaction
149
+ -----------------------------------------------------------------------------
150
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
151
+ -----------------------------------------------------------------------------
152
+  (0.1ms) rollback transaction
153
+  (0.1ms) begin transaction
154
+ ----------------------------------------------------------------------------
155
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
156
+ ----------------------------------------------------------------------------
157
+  (0.1ms) rollback transaction
158
+  (0.1ms) begin transaction
159
+ ------------------------------------------------------
160
+ NestedStoreAttributesTest: test_removes_existing_books
161
+ ------------------------------------------------------
162
+  (0.1ms) rollback transaction
163
+  (0.0ms) begin transaction
164
+ ------------------------------------------------------
165
+ NestedStoreAttributesTest: test_updates_existing_books
166
+ ------------------------------------------------------
167
+  (0.0ms) rollback transaction
168
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
169
+  (0.1ms) begin transaction
170
+ ----------------------------------------------------------------------
171
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
172
+ ----------------------------------------------------------------------
173
+  (0.1ms) SAVEPOINT active_record_1
174
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:14:12.307981"], ["updated_at", "2014-10-16 14:14:12.307981"]]
175
+  (0.1ms) RELEASE SAVEPOINT active_record_1
176
+  (5.8ms) rollback transaction
177
+  (0.1ms) begin transaction
178
+ -----------------------------------------------------------------------------
179
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
180
+ -----------------------------------------------------------------------------
181
+  (0.1ms) SAVEPOINT active_record_1
182
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:14:12.320182"], ["updated_at", "2014-10-16 14:14:12.320182"]]
183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
184
+  (0.5ms) rollback transaction
185
+  (0.1ms) begin transaction
186
+ -------------------------------------------------------
187
+ NestedStoreAttributesTest: test_adds_new_books_as_array
188
+ -------------------------------------------------------
189
+  (0.1ms) SAVEPOINT active_record_1
190
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:14:12.324158"], ["updated_at", "2014-10-16 14:14:12.324158"]]
191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
192
+  (0.5ms) rollback transaction
193
+  (0.1ms) begin transaction
194
+ ------------------------------------------------------
195
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
196
+ ------------------------------------------------------
197
+  (0.1ms) SAVEPOINT active_record_1
198
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:14:12.327752"], ["updated_at", "2014-10-16 14:14:12.327752"]]
199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
200
+  (0.7ms) rollback transaction
201
+  (0.1ms) begin transaction
202
+ -----------------------------------------------------------------------------
203
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
204
+ -----------------------------------------------------------------------------
205
+  (0.0ms) SAVEPOINT active_record_1
206
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:14:12.423242"], ["updated_at", "2014-10-16 14:14:12.423242"]]
207
+  (0.1ms) RELEASE SAVEPOINT active_record_1
208
+  (0.4ms) rollback transaction
209
+  (0.1ms) begin transaction
210
+ ----------------------------------------------------------------------------
211
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
212
+ ----------------------------------------------------------------------------
213
+  (0.1ms) SAVEPOINT active_record_1
214
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:14:12.426830"], ["updated_at", "2014-10-16 14:14:12.426830"]]
215
+  (0.1ms) RELEASE SAVEPOINT active_record_1
216
+  (0.5ms) rollback transaction
217
+  (0.1ms) begin transaction
218
+ ------------------------------------------------------
219
+ NestedStoreAttributesTest: test_removes_existing_books
220
+ ------------------------------------------------------
221
+  (0.1ms) SAVEPOINT active_record_1
222
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:14:12.431221"], ["updated_at", "2014-10-16 14:14:12.431221"]]
223
+  (0.2ms) RELEASE SAVEPOINT active_record_1
224
+  (0.6ms) rollback transaction
225
+  (0.1ms) begin transaction
226
+ ------------------------------------------------------
227
+ NestedStoreAttributesTest: test_updates_existing_books
228
+ ------------------------------------------------------
229
+  (0.2ms) SAVEPOINT active_record_1
230
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:14:12.436176"], ["updated_at", "2014-10-16 14:14:12.436176"]]
231
+  (0.1ms) RELEASE SAVEPOINT active_record_1
232
+  (0.4ms) rollback transaction
233
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
234
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
235
+  (0.1ms) begin transaction
236
+ ----------------------------------------------------------------------
237
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
238
+ ----------------------------------------------------------------------
239
+  (0.1ms) SAVEPOINT active_record_1
240
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:26.170826"], ["updated_at", "2014-10-16 14:15:26.170826"]]
241
+  (0.1ms) RELEASE SAVEPOINT active_record_1
242
+  (0.6ms) rollback transaction
243
+  (0.0ms) begin transaction
244
+ -----------------------------------------------------------------------------
245
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
246
+ -----------------------------------------------------------------------------
247
+  (0.0ms) SAVEPOINT active_record_1
248
+ SQL (0.2ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:26.175686"], ["updated_at", "2014-10-16 14:15:26.175686"]]
249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250
+  (0.6ms) rollback transaction
251
+  (0.1ms) begin transaction
252
+ -------------------------------------------------------
253
+ NestedStoreAttributesTest: test_adds_new_books_as_array
254
+ -------------------------------------------------------
255
+  (0.1ms) SAVEPOINT active_record_1
256
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:26.179543"], ["updated_at", "2014-10-16 14:15:26.179543"]]
257
+  (0.1ms) RELEASE SAVEPOINT active_record_1
258
+  (0.6ms) rollback transaction
259
+  (0.1ms) begin transaction
260
+ ------------------------------------------------------
261
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
262
+ ------------------------------------------------------
263
+  (0.1ms) SAVEPOINT active_record_1
264
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:26.183762"], ["updated_at", "2014-10-16 14:15:26.183762"]]
265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
266
+  (0.9ms) rollback transaction
267
+  (0.2ms) begin transaction
268
+ -----------------------------------------------------------------------------
269
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
270
+ -----------------------------------------------------------------------------
271
+  (0.1ms) SAVEPOINT active_record_1
272
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:26.204276"], ["updated_at", "2014-10-16 14:15:26.204276"]]
273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
274
+  (0.6ms) rollback transaction
275
+  (0.2ms) begin transaction
276
+ ----------------------------------------------------------------------------
277
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
278
+ ----------------------------------------------------------------------------
279
+  (0.1ms) SAVEPOINT active_record_1
280
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:26.209845"], ["updated_at", "2014-10-16 14:15:26.209845"]]
281
+  (0.1ms) RELEASE SAVEPOINT active_record_1
282
+  (0.6ms) rollback transaction
283
+  (0.1ms) begin transaction
284
+ ------------------------------------------------------
285
+ NestedStoreAttributesTest: test_removes_existing_books
286
+ ------------------------------------------------------
287
+  (0.1ms) SAVEPOINT active_record_1
288
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:26.214525"], ["updated_at", "2014-10-16 14:15:26.214525"]]
289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
290
+  (0.6ms) rollback transaction
291
+  (0.1ms) begin transaction
292
+ ------------------------------------------------------
293
+ NestedStoreAttributesTest: test_updates_existing_books
294
+ ------------------------------------------------------
295
+  (0.1ms) SAVEPOINT active_record_1
296
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:26.218826"], ["updated_at", "2014-10-16 14:15:26.218826"]]
297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298
+  (0.3ms) rollback transaction
299
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
300
+  (0.1ms) begin transaction
301
+ ----------------------------------------------------------------------
302
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
303
+ ----------------------------------------------------------------------
304
+  (0.1ms) SAVEPOINT active_record_1
305
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:56.443776"], ["updated_at", "2014-10-16 14:15:56.443776"]]
306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
307
+  (0.4ms) rollback transaction
308
+  (0.1ms) begin transaction
309
+ -----------------------------------------------------------------------------
310
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
311
+ -----------------------------------------------------------------------------
312
+  (0.1ms) SAVEPOINT active_record_1
313
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:56.450554"], ["updated_at", "2014-10-16 14:15:56.450554"]]
314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
315
+  (3.4ms) rollback transaction
316
+  (0.1ms) begin transaction
317
+ -------------------------------------------------------
318
+ NestedStoreAttributesTest: test_adds_new_books_as_array
319
+ -------------------------------------------------------
320
+  (0.1ms) SAVEPOINT active_record_1
321
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:56.457274"], ["updated_at", "2014-10-16 14:15:56.457274"]]
322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
323
+  (0.4ms) rollback transaction
324
+  (0.1ms) begin transaction
325
+ ------------------------------------------------------
326
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
327
+ ------------------------------------------------------
328
+  (0.1ms) SAVEPOINT active_record_1
329
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:56.460948"], ["updated_at", "2014-10-16 14:15:56.460948"]]
330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
331
+  (0.6ms) rollback transaction
332
+  (0.1ms) begin transaction
333
+ -----------------------------------------------------------------------------
334
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
335
+ -----------------------------------------------------------------------------
336
+  (0.1ms) SAVEPOINT active_record_1
337
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:56.478200"], ["updated_at", "2014-10-16 14:15:56.478200"]]
338
+  (0.2ms) RELEASE SAVEPOINT active_record_1
339
+  (0.6ms) rollback transaction
340
+  (0.1ms) begin transaction
341
+ ----------------------------------------------------------------------------
342
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
343
+ ----------------------------------------------------------------------------
344
+  (0.1ms) SAVEPOINT active_record_1
345
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:56.483440"], ["updated_at", "2014-10-16 14:15:56.483440"]]
346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
347
+  (0.6ms) rollback transaction
348
+  (0.1ms) begin transaction
349
+ ------------------------------------------------------
350
+ NestedStoreAttributesTest: test_removes_existing_books
351
+ ------------------------------------------------------
352
+  (0.1ms) SAVEPOINT active_record_1
353
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:56.487630"], ["updated_at", "2014-10-16 14:15:56.487630"]]
354
+  (0.1ms) RELEASE SAVEPOINT active_record_1
355
+  (0.6ms) rollback transaction
356
+  (0.1ms) begin transaction
357
+ ------------------------------------------------------
358
+ NestedStoreAttributesTest: test_updates_existing_books
359
+ ------------------------------------------------------
360
+  (0.2ms) SAVEPOINT active_record_1
361
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:15:56.492251"], ["updated_at", "2014-10-16 14:15:56.492251"]]
362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363
+  (0.5ms) rollback transaction
364
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
365
+  (0.1ms) begin transaction
366
+ ----------------------------------------------------------------------
367
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
368
+ ----------------------------------------------------------------------
369
+  (0.1ms) SAVEPOINT active_record_1
370
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:16:53.119795"], ["updated_at", "2014-10-16 14:16:53.119795"]]
371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
372
+  (0.5ms) rollback transaction
373
+  (0.2ms) begin transaction
374
+ -----------------------------------------------------------------------------
375
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
376
+ -----------------------------------------------------------------------------
377
+  (0.1ms) SAVEPOINT active_record_1
378
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:16:53.138533"], ["updated_at", "2014-10-16 14:16:53.138533"]]
379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
380
+  (0.7ms) rollback transaction
381
+  (0.2ms) begin transaction
382
+ -------------------------------------------------------
383
+ NestedStoreAttributesTest: test_adds_new_books_as_array
384
+ -------------------------------------------------------
385
+  (0.1ms) SAVEPOINT active_record_1
386
+ SQL (0.6ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:16:53.145603"], ["updated_at", "2014-10-16 14:16:53.145603"]]
387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
388
+  (1.0ms) rollback transaction
389
+  (0.1ms) begin transaction
390
+ ------------------------------------------------------
391
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
392
+ ------------------------------------------------------
393
+  (0.1ms) SAVEPOINT active_record_1
394
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:16:53.152099"], ["updated_at", "2014-10-16 14:16:53.152099"]]
395
+  (0.1ms) RELEASE SAVEPOINT active_record_1
396
+  (0.7ms) rollback transaction
397
+  (0.1ms) begin transaction
398
+ -----------------------------------------------------------------------------
399
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
400
+ -----------------------------------------------------------------------------
401
+  (0.1ms) SAVEPOINT active_record_1
402
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:16:53.167285"], ["updated_at", "2014-10-16 14:16:53.167285"]]
403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
404
+  (0.5ms) rollback transaction
405
+  (0.1ms) begin transaction
406
+ ----------------------------------------------------------------------------
407
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
408
+ ----------------------------------------------------------------------------
409
+  (0.1ms) SAVEPOINT active_record_1
410
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:16:53.172388"], ["updated_at", "2014-10-16 14:16:53.172388"]]
411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
412
+  (0.5ms) rollback transaction
413
+  (0.2ms) begin transaction
414
+ ------------------------------------------------------
415
+ NestedStoreAttributesTest: test_removes_existing_books
416
+ ------------------------------------------------------
417
+  (0.1ms) SAVEPOINT active_record_1
418
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:16:53.177036"], ["updated_at", "2014-10-16 14:16:53.177036"]]
419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
420
+  (0.6ms) rollback transaction
421
+  (0.1ms) begin transaction
422
+ ------------------------------------------------------
423
+ NestedStoreAttributesTest: test_updates_existing_books
424
+ ------------------------------------------------------
425
+  (0.4ms) SAVEPOINT active_record_1
426
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:16:53.189746"], ["updated_at", "2014-10-16 14:16:53.189746"]]
427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
428
+  (0.5ms) rollback transaction
429
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
430
+  (0.1ms) begin transaction
431
+ ----------------------------------------------------------------------
432
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
433
+ ----------------------------------------------------------------------
434
+  (0.1ms) SAVEPOINT active_record_1
435
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:27.746669"], ["updated_at", "2014-10-16 14:18:27.746669"]]
436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
437
+  (0.6ms) rollback transaction
438
+  (0.2ms) begin transaction
439
+ -----------------------------------------------------------------------------
440
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
441
+ -----------------------------------------------------------------------------
442
+  (0.1ms) SAVEPOINT active_record_1
443
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:27.765792"], ["updated_at", "2014-10-16 14:18:27.765792"]]
444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
445
+  (0.5ms) rollback transaction
446
+  (0.1ms) begin transaction
447
+ -------------------------------------------------------
448
+ NestedStoreAttributesTest: test_adds_new_books_as_array
449
+ -------------------------------------------------------
450
+  (0.1ms) SAVEPOINT active_record_1
451
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:27.770997"], ["updated_at", "2014-10-16 14:18:27.770997"]]
452
+  (0.1ms) RELEASE SAVEPOINT active_record_1
453
+  (0.5ms) rollback transaction
454
+  (0.2ms) begin transaction
455
+ ------------------------------------------------------
456
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
457
+ ------------------------------------------------------
458
+  (0.1ms) SAVEPOINT active_record_1
459
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:27.775897"], ["updated_at", "2014-10-16 14:18:27.775897"]]
460
+  (0.1ms) RELEASE SAVEPOINT active_record_1
461
+  (0.6ms) rollback transaction
462
+  (0.1ms) begin transaction
463
+ -----------------------------------------------------------------------------
464
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
465
+ -----------------------------------------------------------------------------
466
+  (0.1ms) SAVEPOINT active_record_1
467
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:27.787975"], ["updated_at", "2014-10-16 14:18:27.787975"]]
468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
469
+  (0.5ms) rollback transaction
470
+  (0.1ms) begin transaction
471
+ ----------------------------------------------------------------------------
472
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
473
+ ----------------------------------------------------------------------------
474
+  (0.1ms) SAVEPOINT active_record_1
475
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:27.792598"], ["updated_at", "2014-10-16 14:18:27.792598"]]
476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
477
+  (0.6ms) rollback transaction
478
+  (0.1ms) begin transaction
479
+ ------------------------------------------------------
480
+ NestedStoreAttributesTest: test_removes_existing_books
481
+ ------------------------------------------------------
482
+  (0.1ms) SAVEPOINT active_record_1
483
+ SQL (1.6ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:27.797538"], ["updated_at", "2014-10-16 14:18:27.797538"]]
484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
485
+  (0.3ms) rollback transaction
486
+  (0.2ms) begin transaction
487
+ ------------------------------------------------------
488
+ NestedStoreAttributesTest: test_updates_existing_books
489
+ ------------------------------------------------------
490
+  (0.2ms) SAVEPOINT active_record_1
491
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:27.811937"], ["updated_at", "2014-10-16 14:18:27.811937"]]
492
+  (0.1ms) RELEASE SAVEPOINT active_record_1
493
+  (0.5ms) rollback transaction
494
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
495
+  (0.1ms) begin transaction
496
+ ----------------------------------------------------------------------
497
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
498
+ ----------------------------------------------------------------------
499
+  (0.1ms) SAVEPOINT active_record_1
500
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:42.861421"], ["updated_at", "2014-10-16 14:18:42.861421"]]
501
+  (0.1ms) RELEASE SAVEPOINT active_record_1
502
+  (0.7ms) rollback transaction
503
+  (0.2ms) begin transaction
504
+ -----------------------------------------------------------------------------
505
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
506
+ -----------------------------------------------------------------------------
507
+  (0.2ms) SAVEPOINT active_record_1
508
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:42.880854"], ["updated_at", "2014-10-16 14:18:42.880854"]]
509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
510
+  (0.6ms) rollback transaction
511
+  (0.1ms) begin transaction
512
+ -------------------------------------------------------
513
+ NestedStoreAttributesTest: test_adds_new_books_as_array
514
+ -------------------------------------------------------
515
+  (0.1ms) SAVEPOINT active_record_1
516
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:42.888043"], ["updated_at", "2014-10-16 14:18:42.888043"]]
517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
518
+  (0.1ms) SAVEPOINT active_record_1
519
+ SQL (3.6ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:42.890961"], ["updated_at", "2014-10-16 14:18:42.890961"]]
520
+  (0.1ms) RELEASE SAVEPOINT active_record_1
521
+  (0.6ms) rollback transaction
522
+  (0.1ms) begin transaction
523
+ ------------------------------------------------------
524
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
525
+ ------------------------------------------------------
526
+  (0.1ms) SAVEPOINT active_record_1
527
+ SQL (0.6ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:42.899108"], ["updated_at", "2014-10-16 14:18:42.899108"]]
528
+  (0.1ms) RELEASE SAVEPOINT active_record_1
529
+  (0.7ms) rollback transaction
530
+  (0.1ms) begin transaction
531
+ -----------------------------------------------------------------------------
532
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
533
+ -----------------------------------------------------------------------------
534
+  (0.1ms) SAVEPOINT active_record_1
535
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:42.914148"], ["updated_at", "2014-10-16 14:18:42.914148"]]
536
+  (0.1ms) RELEASE SAVEPOINT active_record_1
537
+  (0.4ms) rollback transaction
538
+  (0.1ms) begin transaction
539
+ ----------------------------------------------------------------------------
540
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
541
+ ----------------------------------------------------------------------------
542
+  (0.1ms) SAVEPOINT active_record_1
543
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:42.919917"], ["updated_at", "2014-10-16 14:18:42.919917"]]
544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
545
+  (0.4ms) rollback transaction
546
+  (0.1ms) begin transaction
547
+ ------------------------------------------------------
548
+ NestedStoreAttributesTest: test_removes_existing_books
549
+ ------------------------------------------------------
550
+  (0.1ms) SAVEPOINT active_record_1
551
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:42.924455"], ["updated_at", "2014-10-16 14:18:42.924455"]]
552
+  (0.2ms) RELEASE SAVEPOINT active_record_1
553
+  (0.6ms) rollback transaction
554
+  (0.1ms) begin transaction
555
+ ------------------------------------------------------
556
+ NestedStoreAttributesTest: test_updates_existing_books
557
+ ------------------------------------------------------
558
+  (0.1ms) SAVEPOINT active_record_1
559
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:18:42.938100"], ["updated_at", "2014-10-16 14:18:42.938100"]]
560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
561
+  (0.5ms) rollback transaction
562
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
563
+  (0.1ms) begin transaction
564
+ ----------------------------------------------------------------------
565
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
566
+ ----------------------------------------------------------------------
567
+  (0.1ms) SAVEPOINT active_record_1
568
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:19:57.218739"], ["updated_at", "2014-10-16 14:19:57.218739"]]
569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
570
+  (0.5ms) rollback transaction
571
+  (0.1ms) begin transaction
572
+ -----------------------------------------------------------------------------
573
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
574
+ -----------------------------------------------------------------------------
575
+  (0.1ms) SAVEPOINT active_record_1
576
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:19:57.234815"], ["updated_at", "2014-10-16 14:19:57.234815"]]
577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
578
+  (0.7ms) rollback transaction
579
+  (0.1ms) begin transaction
580
+ -------------------------------------------------------
581
+ NestedStoreAttributesTest: test_adds_new_books_as_array
582
+ -------------------------------------------------------
583
+  (0.1ms) SAVEPOINT active_record_1
584
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:19:57.240142"], ["updated_at", "2014-10-16 14:19:57.240142"]]
585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
586
+  (0.0ms) SAVEPOINT active_record_1
587
+ SQL (2.2ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:19:57.242969"], ["updated_at", "2014-10-16 14:19:57.242969"]]
588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
589
+  (0.5ms) rollback transaction
590
+  (0.2ms) begin transaction
591
+ ------------------------------------------------------
592
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
593
+ ------------------------------------------------------
594
+  (0.1ms) SAVEPOINT active_record_1
595
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:19:57.249219"], ["updated_at", "2014-10-16 14:19:57.249219"]]
596
+  (0.1ms) RELEASE SAVEPOINT active_record_1
597
+  (0.5ms) rollback transaction
598
+  (0.1ms) begin transaction
599
+ -----------------------------------------------------------------------------
600
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
601
+ -----------------------------------------------------------------------------
602
+  (0.1ms) SAVEPOINT active_record_1
603
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:19:57.253496"], ["updated_at", "2014-10-16 14:19:57.253496"]]
604
+  (0.1ms) RELEASE SAVEPOINT active_record_1
605
+  (0.5ms) rollback transaction
606
+  (0.1ms) begin transaction
607
+ ----------------------------------------------------------------------------
608
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
609
+ ----------------------------------------------------------------------------
610
+  (0.1ms) SAVEPOINT active_record_1
611
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:19:57.257510"], ["updated_at", "2014-10-16 14:19:57.257510"]]
612
+  (0.1ms) RELEASE SAVEPOINT active_record_1
613
+  (0.5ms) rollback transaction
614
+  (0.1ms) begin transaction
615
+ ------------------------------------------------------
616
+ NestedStoreAttributesTest: test_removes_existing_books
617
+ ------------------------------------------------------
618
+  (0.1ms) SAVEPOINT active_record_1
619
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:19:57.261374"], ["updated_at", "2014-10-16 14:19:57.261374"]]
620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
621
+  (0.5ms) rollback transaction
622
+  (0.1ms) begin transaction
623
+ ------------------------------------------------------
624
+ NestedStoreAttributesTest: test_updates_existing_books
625
+ ------------------------------------------------------
626
+  (0.1ms) SAVEPOINT active_record_1
627
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:19:57.272402"], ["updated_at", "2014-10-16 14:19:57.272402"]]
628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
629
+  (0.4ms) rollback transaction
630
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
631
+  (0.1ms) begin transaction
632
+ ----------------------------------------------------------------------
633
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
634
+ ----------------------------------------------------------------------
635
+  (0.1ms) SAVEPOINT active_record_1
636
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:22:24.472596"], ["updated_at", "2014-10-16 14:22:24.472596"]]
637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
638
+  (0.9ms) rollback transaction
639
+  (0.1ms) begin transaction
640
+ -----------------------------------------------------------------------------
641
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
642
+ -----------------------------------------------------------------------------
643
+  (0.1ms) SAVEPOINT active_record_1
644
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:22:24.492077"], ["updated_at", "2014-10-16 14:22:24.492077"]]
645
+  (0.1ms) RELEASE SAVEPOINT active_record_1
646
+  (2.0ms) rollback transaction
647
+  (0.1ms) begin transaction
648
+ -------------------------------------------------------
649
+ NestedStoreAttributesTest: test_adds_new_books_as_array
650
+ -------------------------------------------------------
651
+  (0.1ms) SAVEPOINT active_record_1
652
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:22:24.500243"], ["updated_at", "2014-10-16 14:22:24.500243"]]
653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
654
+  (0.1ms) SAVEPOINT active_record_1
655
+ SQL (1.2ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:22:24.503384"], ["updated_at", "2014-10-16 14:22:24.503384"]]
656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
657
+  (0.5ms) rollback transaction
658
+  (0.1ms) begin transaction
659
+ ------------------------------------------------------
660
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
661
+ ------------------------------------------------------
662
+  (0.1ms) SAVEPOINT active_record_1
663
+ SQL (0.6ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:22:24.508565"], ["updated_at", "2014-10-16 14:22:24.508565"]]
664
+  (0.1ms) RELEASE SAVEPOINT active_record_1
665
+  (0.6ms) rollback transaction
666
+  (0.1ms) begin transaction
667
+ -----------------------------------------------------------------------------
668
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
669
+ -----------------------------------------------------------------------------
670
+  (0.1ms) SAVEPOINT active_record_1
671
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:22:24.513327"], ["updated_at", "2014-10-16 14:22:24.513327"]]
672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
673
+  (0.4ms) rollback transaction
674
+  (0.1ms) begin transaction
675
+ ----------------------------------------------------------------------------
676
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
677
+ ----------------------------------------------------------------------------
678
+  (0.1ms) SAVEPOINT active_record_1
679
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:22:24.517138"], ["updated_at", "2014-10-16 14:22:24.517138"]]
680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
681
+  (0.5ms) rollback transaction
682
+  (0.1ms) begin transaction
683
+ ------------------------------------------------------
684
+ NestedStoreAttributesTest: test_removes_existing_books
685
+ ------------------------------------------------------
686
+  (0.1ms) SAVEPOINT active_record_1
687
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:22:24.521103"], ["updated_at", "2014-10-16 14:22:24.521103"]]
688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
689
+  (0.7ms) rollback transaction
690
+  (0.1ms) begin transaction
691
+ ------------------------------------------------------
692
+ NestedStoreAttributesTest: test_updates_existing_books
693
+ ------------------------------------------------------
694
+  (0.1ms) SAVEPOINT active_record_1
695
+ SQL (0.6ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:22:24.534463"], ["updated_at", "2014-10-16 14:22:24.534463"]]
696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
697
+  (0.5ms) rollback transaction
698
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
699
+  (0.1ms) begin transaction
700
+ ----------------------------------------------------------------------
701
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
702
+ ----------------------------------------------------------------------
703
+  (0.1ms) rollback transaction
704
+  (0.1ms) begin transaction
705
+ -----------------------------------------------------------------------------
706
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
707
+ -----------------------------------------------------------------------------
708
+  (0.1ms) rollback transaction
709
+  (0.1ms) begin transaction
710
+ -------------------------------------------------------
711
+ NestedStoreAttributesTest: test_adds_new_books_as_array
712
+ -------------------------------------------------------
713
+  (0.1ms) rollback transaction
714
+  (0.1ms) begin transaction
715
+ ------------------------------------------------------
716
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
717
+ ------------------------------------------------------
718
+  (0.1ms) rollback transaction
719
+  (0.1ms) begin transaction
720
+ -----------------------------------------------------------------------------
721
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
722
+ -----------------------------------------------------------------------------
723
+  (0.1ms) rollback transaction
724
+  (0.1ms) begin transaction
725
+ ----------------------------------------------------------------------------
726
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
727
+ ----------------------------------------------------------------------------
728
+  (0.1ms) rollback transaction
729
+  (0.1ms) begin transaction
730
+ ------------------------------------------------------
731
+ NestedStoreAttributesTest: test_removes_existing_books
732
+ ------------------------------------------------------
733
+  (0.1ms) rollback transaction
734
+  (0.1ms) begin transaction
735
+ ------------------------------------------------------
736
+ NestedStoreAttributesTest: test_updates_existing_books
737
+ ------------------------------------------------------
738
+  (0.1ms) rollback transaction
739
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
740
+  (0.1ms) begin transaction
741
+ ----------------------------------------------------------------------
742
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
743
+ ----------------------------------------------------------------------
744
+  (0.1ms) SAVEPOINT active_record_1
745
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:23:05.320210"], ["updated_at", "2014-10-16 14:23:05.320210"]]
746
+  (0.1ms) RELEASE SAVEPOINT active_record_1
747
+  (0.6ms) rollback transaction
748
+  (0.2ms) begin transaction
749
+ -----------------------------------------------------------------------------
750
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
751
+ -----------------------------------------------------------------------------
752
+  (0.3ms) SAVEPOINT active_record_1
753
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:23:05.344663"], ["updated_at", "2014-10-16 14:23:05.344663"]]
754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
755
+  (0.5ms) rollback transaction
756
+  (0.1ms) begin transaction
757
+ -------------------------------------------------------
758
+ NestedStoreAttributesTest: test_adds_new_books_as_array
759
+ -------------------------------------------------------
760
+  (0.1ms) SAVEPOINT active_record_1
761
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:23:05.351169"], ["updated_at", "2014-10-16 14:23:05.351169"]]
762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
763
+  (0.1ms) SAVEPOINT active_record_1
764
+ SQL (3.0ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:23:05.354059"], ["updated_at", "2014-10-16 14:23:05.354059"]]
765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
766
+  (0.5ms) rollback transaction
767
+  (0.1ms) begin transaction
768
+ ------------------------------------------------------
769
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
770
+ ------------------------------------------------------
771
+  (0.1ms) SAVEPOINT active_record_1
772
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:23:05.361555"], ["updated_at", "2014-10-16 14:23:05.361555"]]
773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
774
+  (0.4ms) rollback transaction
775
+  (0.1ms) begin transaction
776
+ -----------------------------------------------------------------------------
777
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
778
+ -----------------------------------------------------------------------------
779
+  (0.1ms) SAVEPOINT active_record_1
780
+ SQL (0.6ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:23:05.366497"], ["updated_at", "2014-10-16 14:23:05.366497"]]
781
+  (0.1ms) RELEASE SAVEPOINT active_record_1
782
+  (0.5ms) rollback transaction
783
+  (0.1ms) begin transaction
784
+ ----------------------------------------------------------------------------
785
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
786
+ ----------------------------------------------------------------------------
787
+  (0.1ms) SAVEPOINT active_record_1
788
+ SQL (0.7ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:23:05.371693"], ["updated_at", "2014-10-16 14:23:05.371693"]]
789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
790
+  (0.5ms) rollback transaction
791
+  (0.1ms) begin transaction
792
+ ------------------------------------------------------
793
+ NestedStoreAttributesTest: test_removes_existing_books
794
+ ------------------------------------------------------
795
+  (0.2ms) SAVEPOINT active_record_1
796
+ SQL (0.9ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:23:05.377581"], ["updated_at", "2014-10-16 14:23:05.377581"]]
797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
798
+  (0.8ms) rollback transaction
799
+  (0.2ms) begin transaction
800
+ ------------------------------------------------------
801
+ NestedStoreAttributesTest: test_updates_existing_books
802
+ ------------------------------------------------------
803
+  (0.1ms) SAVEPOINT active_record_1
804
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:23:05.393239"], ["updated_at", "2014-10-16 14:23:05.393239"]]
805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
806
+  (0.5ms) rollback transaction
807
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
808
+  (0.1ms) begin transaction
809
+ ----------------------------------------------------------------------
810
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
811
+ ----------------------------------------------------------------------
812
+  (0.1ms) SAVEPOINT active_record_1
813
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:16.639189"], ["updated_at", "2014-10-16 14:24:16.639189"]]
814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
815
+  (0.5ms) rollback transaction
816
+  (0.1ms) begin transaction
817
+ -----------------------------------------------------------------------------
818
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
819
+ -----------------------------------------------------------------------------
820
+  (0.1ms) SAVEPOINT active_record_1
821
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:16.654732"], ["updated_at", "2014-10-16 14:24:16.654732"]]
822
+  (0.1ms) RELEASE SAVEPOINT active_record_1
823
+  (0.5ms) rollback transaction
824
+  (0.1ms) begin transaction
825
+ -------------------------------------------------------
826
+ NestedStoreAttributesTest: test_adds_new_books_as_array
827
+ -------------------------------------------------------
828
+  (0.1ms) SAVEPOINT active_record_1
829
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:16.660435"], ["updated_at", "2014-10-16 14:24:16.660435"]]
830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
831
+  (0.1ms) SAVEPOINT active_record_1
832
+ SQL (1.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:16.663004"], ["updated_at", "2014-10-16 14:24:16.663004"]]
833
+  (0.1ms) RELEASE SAVEPOINT active_record_1
834
+  (0.5ms) rollback transaction
835
+  (0.1ms) begin transaction
836
+ ------------------------------------------------------
837
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
838
+ ------------------------------------------------------
839
+  (0.1ms) SAVEPOINT active_record_1
840
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:16.668394"], ["updated_at", "2014-10-16 14:24:16.668394"]]
841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
842
+  (0.4ms) rollback transaction
843
+  (0.1ms) begin transaction
844
+ -----------------------------------------------------------------------------
845
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
846
+ -----------------------------------------------------------------------------
847
+  (0.1ms) SAVEPOINT active_record_1
848
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:16.672526"], ["updated_at", "2014-10-16 14:24:16.672526"]]
849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
850
+  (0.5ms) rollback transaction
851
+  (0.2ms) begin transaction
852
+ ----------------------------------------------------------------------------
853
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
854
+ ----------------------------------------------------------------------------
855
+  (0.2ms) SAVEPOINT active_record_1
856
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:16.677136"], ["updated_at", "2014-10-16 14:24:16.677136"]]
857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
858
+  (0.5ms) rollback transaction
859
+  (0.1ms) begin transaction
860
+ ------------------------------------------------------
861
+ NestedStoreAttributesTest: test_removes_existing_books
862
+ ------------------------------------------------------
863
+  (0.1ms) SAVEPOINT active_record_1
864
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:16.681643"], ["updated_at", "2014-10-16 14:24:16.681643"]]
865
+  (0.1ms) RELEASE SAVEPOINT active_record_1
866
+  (0.7ms) rollback transaction
867
+  (0.1ms) begin transaction
868
+ ------------------------------------------------------
869
+ NestedStoreAttributesTest: test_updates_existing_books
870
+ ------------------------------------------------------
871
+  (0.1ms) SAVEPOINT active_record_1
872
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:16.694315"], ["updated_at", "2014-10-16 14:24:16.694315"]]
873
+  (0.1ms) RELEASE SAVEPOINT active_record_1
874
+  (0.5ms) rollback transaction
875
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
876
+  (0.1ms) begin transaction
877
+ ----------------------------------------------------------------------
878
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
879
+ ----------------------------------------------------------------------
880
+  (0.1ms) SAVEPOINT active_record_1
881
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:41.443490"], ["updated_at", "2014-10-16 14:24:41.443490"]]
882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
883
+  (0.4ms) rollback transaction
884
+  (0.1ms) begin transaction
885
+ -----------------------------------------------------------------------------
886
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
887
+ -----------------------------------------------------------------------------
888
+  (0.1ms) SAVEPOINT active_record_1
889
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:41.461511"], ["updated_at", "2014-10-16 14:24:41.461511"]]
890
+  (0.1ms) RELEASE SAVEPOINT active_record_1
891
+  (0.8ms) rollback transaction
892
+  (0.1ms) begin transaction
893
+ -------------------------------------------------------
894
+ NestedStoreAttributesTest: test_adds_new_books_as_array
895
+ -------------------------------------------------------
896
+  (0.1ms) SAVEPOINT active_record_1
897
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:41.468308"], ["updated_at", "2014-10-16 14:24:41.468308"]]
898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
899
+  (0.1ms) SAVEPOINT active_record_1
900
+ SQL (1.1ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:41.471453"], ["updated_at", "2014-10-16 14:24:41.471453"]]
901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
902
+  (0.6ms) rollback transaction
903
+  (0.1ms) begin transaction
904
+ ------------------------------------------------------
905
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
906
+ ------------------------------------------------------
907
+  (0.1ms) SAVEPOINT active_record_1
908
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:41.476250"], ["updated_at", "2014-10-16 14:24:41.476250"]]
909
+  (0.1ms) RELEASE SAVEPOINT active_record_1
910
+  (0.4ms) rollback transaction
911
+  (0.1ms) begin transaction
912
+ -----------------------------------------------------------------------------
913
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
914
+ -----------------------------------------------------------------------------
915
+  (0.1ms) SAVEPOINT active_record_1
916
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:41.479785"], ["updated_at", "2014-10-16 14:24:41.479785"]]
917
+  (0.1ms) RELEASE SAVEPOINT active_record_1
918
+  (0.6ms) rollback transaction
919
+  (0.2ms) begin transaction
920
+ ----------------------------------------------------------------------------
921
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
922
+ ----------------------------------------------------------------------------
923
+  (0.1ms) SAVEPOINT active_record_1
924
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:41.484780"], ["updated_at", "2014-10-16 14:24:41.484780"]]
925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
926
+  (0.4ms) rollback transaction
927
+  (0.1ms) begin transaction
928
+ ------------------------------------------------------
929
+ NestedStoreAttributesTest: test_removes_existing_books
930
+ ------------------------------------------------------
931
+  (0.1ms) SAVEPOINT active_record_1
932
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:41.489070"], ["updated_at", "2014-10-16 14:24:41.489070"]]
933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
934
+  (0.5ms) rollback transaction
935
+  (0.1ms) begin transaction
936
+ ------------------------------------------------------
937
+ NestedStoreAttributesTest: test_updates_existing_books
938
+ ------------------------------------------------------
939
+  (0.1ms) SAVEPOINT active_record_1
940
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:24:41.501791"], ["updated_at", "2014-10-16 14:24:41.501791"]]
941
+  (0.1ms) RELEASE SAVEPOINT active_record_1
942
+  (0.5ms) rollback transaction
943
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
944
+  (0.1ms) begin transaction
945
+ ----------------------------------------------------------------------
946
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
947
+ ----------------------------------------------------------------------
948
+  (0.1ms) SAVEPOINT active_record_1
949
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:26:05.043738"], ["updated_at", "2014-10-16 14:26:05.043738"]]
950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
951
+  (0.4ms) rollback transaction
952
+  (0.1ms) begin transaction
953
+ -----------------------------------------------------------------------------
954
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
955
+ -----------------------------------------------------------------------------
956
+  (0.1ms) SAVEPOINT active_record_1
957
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:26:05.049083"], ["updated_at", "2014-10-16 14:26:05.049083"]]
958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
959
+  (0.5ms) rollback transaction
960
+  (0.1ms) begin transaction
961
+ -------------------------------------------------------
962
+ NestedStoreAttributesTest: test_adds_new_books_as_array
963
+ -------------------------------------------------------
964
+  (0.1ms) SAVEPOINT active_record_1
965
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:26:05.052783"], ["updated_at", "2014-10-16 14:26:05.052783"]]
966
+  (0.1ms) RELEASE SAVEPOINT active_record_1
967
+  (0.1ms) SAVEPOINT active_record_1
968
+ SQL (1.0ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:26:05.054897"], ["updated_at", "2014-10-16 14:26:05.054897"]]
969
+  (0.1ms) RELEASE SAVEPOINT active_record_1
970
+  (0.5ms) rollback transaction
971
+  (0.1ms) begin transaction
972
+ ------------------------------------------------------
973
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
974
+ ------------------------------------------------------
975
+  (0.0ms) SAVEPOINT active_record_1
976
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:26:05.058678"], ["updated_at", "2014-10-16 14:26:05.058678"]]
977
+  (0.1ms) RELEASE SAVEPOINT active_record_1
978
+  (0.4ms) rollback transaction
979
+  (0.1ms) begin transaction
980
+ -----------------------------------------------------------------------------
981
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
982
+ -----------------------------------------------------------------------------
983
+  (0.1ms) SAVEPOINT active_record_1
984
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:26:05.062259"], ["updated_at", "2014-10-16 14:26:05.062259"]]
985
+  (0.1ms) RELEASE SAVEPOINT active_record_1
986
+  (0.5ms) rollback transaction
987
+  (0.1ms) begin transaction
988
+ ----------------------------------------------------------------------------
989
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
990
+ ----------------------------------------------------------------------------
991
+  (0.1ms) SAVEPOINT active_record_1
992
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:26:05.066306"], ["updated_at", "2014-10-16 14:26:05.066306"]]
993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
994
+  (0.6ms) rollback transaction
995
+  (0.1ms) begin transaction
996
+ ------------------------------------------------------
997
+ NestedStoreAttributesTest: test_removes_existing_books
998
+ ------------------------------------------------------
999
+  (0.1ms) SAVEPOINT active_record_1
1000
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:26:05.070529"], ["updated_at", "2014-10-16 14:26:05.070529"]]
1001
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1002
+  (0.6ms) rollback transaction
1003
+  (0.1ms) begin transaction
1004
+ ------------------------------------------------------
1005
+ NestedStoreAttributesTest: test_updates_existing_books
1006
+ ------------------------------------------------------
1007
+  (0.1ms) SAVEPOINT active_record_1
1008
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:26:05.074949"], ["updated_at", "2014-10-16 14:26:05.074949"]]
1009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1010
+  (0.5ms) rollback transaction
1011
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1012
+  (0.1ms) begin transaction
1013
+ ----------------------------------------------------------------------
1014
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
1015
+ ----------------------------------------------------------------------
1016
+  (0.1ms) SAVEPOINT active_record_1
1017
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:32:17.154776"], ["updated_at", "2014-10-16 14:32:17.154776"]]
1018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1019
+  (0.5ms) rollback transaction
1020
+  (0.1ms) begin transaction
1021
+ -----------------------------------------------------------------------------
1022
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
1023
+ -----------------------------------------------------------------------------
1024
+  (0.1ms) SAVEPOINT active_record_1
1025
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:32:17.162244"], ["updated_at", "2014-10-16 14:32:17.162244"]]
1026
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1027
+  (0.8ms) rollback transaction
1028
+  (0.1ms) begin transaction
1029
+ -------------------------------------------------------
1030
+ NestedStoreAttributesTest: test_adds_new_books_as_array
1031
+ -------------------------------------------------------
1032
+  (0.1ms) SAVEPOINT active_record_1
1033
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:32:17.166803"], ["updated_at", "2014-10-16 14:32:17.166803"]]
1034
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1035
+  (0.1ms) SAVEPOINT active_record_1
1036
+ SQL (1.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:32:17.169460"], ["updated_at", "2014-10-16 14:32:17.169460"]]
1037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1038
+  (0.3ms) rollback transaction
1039
+  (0.1ms) begin transaction
1040
+ ------------------------------------------------------
1041
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
1042
+ ------------------------------------------------------
1043
+  (0.1ms) SAVEPOINT active_record_1
1044
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:32:17.174484"], ["updated_at", "2014-10-16 14:32:17.174484"]]
1045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1046
+  (0.5ms) rollback transaction
1047
+  (0.1ms) begin transaction
1048
+ -----------------------------------------------------------------------------
1049
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
1050
+ -----------------------------------------------------------------------------
1051
+  (0.1ms) SAVEPOINT active_record_1
1052
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:32:17.178895"], ["updated_at", "2014-10-16 14:32:17.178895"]]
1053
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1054
+  (0.2ms) rollback transaction
1055
+  (0.1ms) begin transaction
1056
+ ----------------------------------------------------------------------------
1057
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
1058
+ ----------------------------------------------------------------------------
1059
+  (0.1ms) SAVEPOINT active_record_1
1060
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:32:17.182354"], ["updated_at", "2014-10-16 14:32:17.182354"]]
1061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1062
+  (0.5ms) rollback transaction
1063
+  (0.1ms) begin transaction
1064
+ -------------------------------------------------------------------------------
1065
+ NestedStoreAttributesTest: test_raises_error_if_argument_is_not_a_hash_or_array
1066
+ -------------------------------------------------------------------------------
1067
+  (0.1ms) SAVEPOINT active_record_1
1068
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:32:17.186572"], ["updated_at", "2014-10-16 14:32:17.186572"]]
1069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1070
+  (0.5ms) rollback transaction
1071
+  (0.1ms) begin transaction
1072
+ ------------------------------------------------------
1073
+ NestedStoreAttributesTest: test_removes_existing_books
1074
+ ------------------------------------------------------
1075
+  (0.1ms) SAVEPOINT active_record_1
1076
+ SQL (1.9ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:32:17.190436"], ["updated_at", "2014-10-16 14:32:17.190436"]]
1077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1078
+  (0.5ms) rollback transaction
1079
+  (0.1ms) begin transaction
1080
+ ------------------------------------------------------
1081
+ NestedStoreAttributesTest: test_updates_existing_books
1082
+ ------------------------------------------------------
1083
+  (0.1ms) SAVEPOINT active_record_1
1084
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:32:17.195904"], ["updated_at", "2014-10-16 14:32:17.195904"]]
1085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1086
+  (0.5ms) rollback transaction
1087
+  (0.1ms) begin transaction
1088
+ -----------------------------------------------------------------------
1089
+ NestedStoreAttributesTest: test_wont_delete_unless_allow_destroy_is_set
1090
+ -----------------------------------------------------------------------
1091
+  (0.1ms) SAVEPOINT active_record_1
1092
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:32:17.199769"], ["updated_at", "2014-10-16 14:32:17.199769"]]
1093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1094
+  (0.1ms) SAVEPOINT active_record_1
1095
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "null"], ["cars", "[{\"name\":\"test\"}]"], ["created_at", "2014-10-16 14:32:17.202200"], ["updated_at", "2014-10-16 14:32:17.202200"]]
1096
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1097
+  (0.6ms) rollback transaction
1098
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1099
+  (0.1ms) begin transaction
1100
+ ----------------------------------------------------------------------
1101
+ NestedStoreAttributesTest: test_adds,_updates,_and_removes_all_at_once
1102
+ ----------------------------------------------------------------------
1103
+  (0.1ms) SAVEPOINT active_record_1
1104
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:34:08.411756"], ["updated_at", "2014-10-16 14:34:08.411756"]]
1105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1106
+  (0.5ms) rollback transaction
1107
+  (0.1ms) begin transaction
1108
+ -----------------------------------------------------------------------------
1109
+ NestedStoreAttributesTest: test_adds_accepts_store_attributes_to_ActiveRecord
1110
+ -----------------------------------------------------------------------------
1111
+  (0.1ms) SAVEPOINT active_record_1
1112
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:34:08.418660"], ["updated_at", "2014-10-16 14:34:08.418660"]]
1113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1114
+  (15.1ms) rollback transaction
1115
+  (0.1ms) begin transaction
1116
+ -------------------------------------------------------
1117
+ NestedStoreAttributesTest: test_adds_new_books_as_array
1118
+ -------------------------------------------------------
1119
+  (0.1ms) SAVEPOINT active_record_1
1120
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:34:08.437335"], ["updated_at", "2014-10-16 14:34:08.437335"]]
1121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1122
+  (0.1ms) SAVEPOINT active_record_1
1123
+ SQL (1.1ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:34:08.439709"], ["updated_at", "2014-10-16 14:34:08.439709"]]
1124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1125
+  (0.6ms) rollback transaction
1126
+  (0.1ms) begin transaction
1127
+ ------------------------------------------------------
1128
+ NestedStoreAttributesTest: test_adds_new_books_as_hash
1129
+ ------------------------------------------------------
1130
+  (0.1ms) SAVEPOINT active_record_1
1131
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:34:08.444297"], ["updated_at", "2014-10-16 14:34:08.444297"]]
1132
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1133
+  (0.6ms) rollback transaction
1134
+  (0.1ms) begin transaction
1135
+ -----------------------------------------------------------------------------
1136
+ NestedStoreAttributesTest: test_generates_books_attributes=_method_for_person
1137
+ -----------------------------------------------------------------------------
1138
+  (0.1ms) SAVEPOINT active_record_1
1139
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:34:08.448882"], ["updated_at", "2014-10-16 14:34:08.448882"]]
1140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1141
+  (0.5ms) rollback transaction
1142
+  (0.1ms) begin transaction
1143
+ ----------------------------------------------------------------------------
1144
+ NestedStoreAttributesTest: test_generates_cars_attributes=_method_for_person
1145
+ ----------------------------------------------------------------------------
1146
+  (0.1ms) SAVEPOINT active_record_1
1147
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:34:08.452387"], ["updated_at", "2014-10-16 14:34:08.452387"]]
1148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1149
+  (0.6ms) rollback transaction
1150
+  (0.1ms) begin transaction
1151
+ -------------------------------------------------------------------------------
1152
+ NestedStoreAttributesTest: test_raises_error_if_argument_is_not_a_hash_or_array
1153
+ -------------------------------------------------------------------------------
1154
+  (0.1ms) SAVEPOINT active_record_1
1155
+ SQL (0.3ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:34:08.456456"], ["updated_at", "2014-10-16 14:34:08.456456"]]
1156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1157
+  (0.5ms) rollback transaction
1158
+  (0.1ms) begin transaction
1159
+ ------------------------------------------------------
1160
+ NestedStoreAttributesTest: test_removes_existing_books
1161
+ ------------------------------------------------------
1162
+  (0.1ms) SAVEPOINT active_record_1
1163
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:34:08.460616"], ["updated_at", "2014-10-16 14:34:08.460616"]]
1164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1165
+  (0.6ms) rollback transaction
1166
+  (0.1ms) begin transaction
1167
+ ------------------------------------------------------
1168
+ NestedStoreAttributesTest: test_updates_existing_books
1169
+ ------------------------------------------------------
1170
+  (0.1ms) SAVEPOINT active_record_1
1171
+ SQL (0.5ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:34:08.464856"], ["updated_at", "2014-10-16 14:34:08.464856"]]
1172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1173
+  (0.5ms) rollback transaction
1174
+  (0.1ms) begin transaction
1175
+ -----------------------------------------------------------------------
1176
+ NestedStoreAttributesTest: test_wont_delete_unless_allow_destroy_is_set
1177
+ -----------------------------------------------------------------------
1178
+  (0.1ms) SAVEPOINT active_record_1
1179
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "[{\"isbn\":1234,\"name\":\"war, what is it good for\"},{\"isbn\":5678,\"name\":\"the borg\"}]"], ["cars", "null"], ["created_at", "2014-10-16 14:34:08.469145"], ["updated_at", "2014-10-16 14:34:08.469145"]]
1180
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1181
+  (0.1ms) SAVEPOINT active_record_1
1182
+ SQL (0.4ms) INSERT INTO "people" ("books", "cars", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["books", "null"], ["cars", "[{\"name\":\"test\"}]"], ["created_at", "2014-10-16 14:34:08.471512"], ["updated_at", "2014-10-16 14:34:08.471512"]]
1183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1184
+  (0.5ms) rollback transaction