listable_collections 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +101 -0
  4. data/Rakefile +37 -0
  5. data/lib/listable_collections/builder.rb +91 -0
  6. data/lib/listable_collections/extensions/active_record/base.rb +21 -0
  7. data/lib/listable_collections/railtie.rb +9 -0
  8. data/lib/listable_collections/version.rb +3 -0
  9. data/lib/listable_collections.rb +6 -0
  10. data/test/association_test.rb +25 -0
  11. data/test/attribute_test.rb +24 -0
  12. data/test/dummy/README.rdoc +28 -0
  13. data/test/dummy/Rakefile +6 -0
  14. data/test/dummy/app/assets/javascripts/application.js +13 -0
  15. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  16. data/test/dummy/app/controllers/application_controller.rb +5 -0
  17. data/test/dummy/app/helpers/application_helper.rb +2 -0
  18. data/test/dummy/app/models/product.rb +15 -0
  19. data/test/dummy/app/models/shop.rb +13 -0
  20. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  21. data/test/dummy/bin/bundle +3 -0
  22. data/test/dummy/bin/rails +4 -0
  23. data/test/dummy/bin/rake +4 -0
  24. data/test/dummy/bin/setup +29 -0
  25. data/test/dummy/config/application.rb +27 -0
  26. data/test/dummy/config/boot.rb +5 -0
  27. data/test/dummy/config/database.yml +10 -0
  28. data/test/dummy/config/database.yml.travis +19 -0
  29. data/test/dummy/config/environment.rb +5 -0
  30. data/test/dummy/config/environments/development.rb +41 -0
  31. data/test/dummy/config/environments/production.rb +79 -0
  32. data/test/dummy/config/environments/test.rb +42 -0
  33. data/test/dummy/config/initializers/assets.rb +11 -0
  34. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  35. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  36. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  37. data/test/dummy/config/initializers/inflections.rb +16 -0
  38. data/test/dummy/config/initializers/mime_types.rb +4 -0
  39. data/test/dummy/config/initializers/session_store.rb +3 -0
  40. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/test/dummy/config/locales/en.yml +23 -0
  42. data/test/dummy/config/routes.rb +56 -0
  43. data/test/dummy/config/secrets.yml +22 -0
  44. data/test/dummy/config.ru +4 -0
  45. data/test/dummy/db/migrate/20160916011427_create_shops.rb +9 -0
  46. data/test/dummy/db/migrate/20160916011451_create_products.rb +11 -0
  47. data/test/dummy/db/schema.rb +30 -0
  48. data/test/dummy/log/development.log +58 -0
  49. data/test/dummy/log/test.log +560 -0
  50. data/test/dummy/public/404.html +67 -0
  51. data/test/dummy/public/422.html +67 -0
  52. data/test/dummy/public/500.html +66 -0
  53. data/test/dummy/public/favicon.ico +0 -0
  54. data/test/fixtures/products.yml +8 -0
  55. data/test/fixtures/shops.yml +3 -0
  56. data/test/test_helper.rb +21 -0
  57. metadata +194 -0
@@ -0,0 +1,560 @@
1
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
+  (0.0ms) begin transaction
3
+ Fixture Delete (0.2ms) DELETE FROM "products"
4
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 14:35:01', '2016-09-17 14:35:01', 475308017, 690933842)
5
+ Fixture Insert (0.0ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 14:35:01', '2016-09-17 14:35:01', 94564450, 690933842)
6
+ Fixture Delete (0.1ms) DELETE FROM "shops"
7
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 14:35:01', '2016-09-17 14:35:01', 690933842)
8
+  (0.6ms) commit transaction
9
+  (0.1ms) begin transaction
10
+ ----------------------------
11
+ AttributeTest: test_accessor
12
+ ----------------------------
13
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
14
+  (0.0ms) rollback transaction
15
+  (0.0ms) begin transaction
16
+ ------------------------------
17
+ AssociationTest: test_accessor
18
+ ------------------------------
19
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
20
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
21
+  (0.1ms) SAVEPOINT active_record_1
22
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "iMac"], ["shop_id", 690933842], ["created_at", "2016-09-17 14:35:01.999712"], ["updated_at", "2016-09-17 14:35:01.999712"]]
23
+  (0.1ms) RELEASE SAVEPOINT active_record_1
24
+  (0.6ms) rollback transaction
25
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
26
+  (0.0ms) begin transaction
27
+ Fixture Delete (0.5ms) DELETE FROM "products"
28
+ Fixture Insert (0.5ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 16:39:10', '2016-09-17 16:39:10', 475308017, 690933842)
29
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 16:39:10', '2016-09-17 16:39:10', 94564450, 690933842)
30
+ Fixture Delete (0.0ms) DELETE FROM "shops"
31
+ Fixture Insert (0.1ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 16:39:10', '2016-09-17 16:39:10', 690933842)
32
+  (0.6ms) commit transaction
33
+  (0.0ms) begin transaction
34
+ ----------------------------
35
+ AttributeTest: test_accessor
36
+ ----------------------------
37
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
38
+  (0.0ms) rollback transaction
39
+  (0.0ms) begin transaction
40
+ ------------------------------
41
+ AssociationTest: test_accessor
42
+ ------------------------------
43
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
44
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
45
+  (0.0ms) SAVEPOINT active_record_1
46
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "iMac"], ["shop_id", 690933842], ["created_at", "2016-09-17 16:39:10.197346"], ["updated_at", "2016-09-17 16:39:10.197346"]]
47
+  (0.0ms) RELEASE SAVEPOINT active_record_1
48
+  (0.3ms) rollback transaction
49
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
51
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
52
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
54
+  (0.1ms) begin transaction
55
+ Fixture Delete (0.2ms) DELETE FROM "products"
56
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 18:39:23', '2016-09-17 18:39:23', 475308017, 690933842)
57
+ Fixture Insert (0.0ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 18:39:23', '2016-09-17 18:39:23', 94564450, 690933842)
58
+ Fixture Delete (0.0ms) DELETE FROM "shops"
59
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 18:39:23', '2016-09-17 18:39:23', 690933842)
60
+  (0.6ms) commit transaction
61
+  (0.0ms) begin transaction
62
+ ------------------------------
63
+ AssociationTest: test_accessor
64
+ ------------------------------
65
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
66
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
67
+  (0.0ms) SAVEPOINT active_record_1
68
+ SQL (0.2ms) INSERT INTO "products" ("created_at", "name", "shop_id", "sizes", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-09-17 18:39:23.310152"], ["name", "iMac"], ["shop_id", 690933842], ["sizes", "--- []\n"], ["updated_at", "2016-09-17 18:39:23.310152"]]
69
+  (0.0ms) RELEASE SAVEPOINT active_record_1
70
+  (0.3ms) rollback transaction
71
+  (0.0ms) begin transaction
72
+ ----------------------------
73
+ AttributeTest: test_accessor
74
+ ----------------------------
75
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
76
+  (0.0ms) rollback transaction
77
+  (0.0ms) begin transaction
78
+ Fixture Delete (0.2ms) DELETE FROM "products"
79
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 18:39:44', '2016-09-17 18:39:44', 475308017, 690933842)
80
+ Fixture Insert (0.0ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 18:39:44', '2016-09-17 18:39:44', 94564450, 690933842)
81
+ Fixture Delete (0.0ms) DELETE FROM "shops"
82
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 18:39:44', '2016-09-17 18:39:44', 690933842)
83
+  (0.6ms) commit transaction
84
+  (0.0ms) begin transaction
85
+ ------------------------------
86
+ AssociationTest: test_accessor
87
+ ------------------------------
88
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
89
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
90
+  (0.0ms) SAVEPOINT active_record_1
91
+ SQL (1.1ms) INSERT INTO "products" ("created_at", "name", "shop_id", "sizes", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 17 Sep 2016 18:39:44 UTC +00:00], ["name", "iMac"], ["shop_id", 690933842], ["sizes", "--- []\n"], ["updated_at", Sat, 17 Sep 2016 18:39:44 UTC +00:00]]
92
+  (0.0ms) RELEASE SAVEPOINT active_record_1
93
+  (0.3ms) rollback transaction
94
+  (0.0ms) begin transaction
95
+ ----------------------------
96
+ AttributeTest: test_accessor
97
+ ----------------------------
98
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
99
+  (0.0ms) rollback transaction
100
+  (0.1ms) begin transaction
101
+ Fixture Delete (0.7ms) DELETE FROM "products"
102
+ Fixture Insert (0.2ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 18:44:54', '2016-09-17 18:44:54', 475308017, 690933842)
103
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 18:44:54', '2016-09-17 18:44:54', 94564450, 690933842)
104
+ Fixture Delete (0.1ms) DELETE FROM "shops"
105
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 18:44:54', '2016-09-17 18:44:54', 690933842)
106
+  (0.6ms) commit transaction
107
+  (0.0ms) begin transaction
108
+ ------------------------------
109
+ AssociationTest: test_accessor
110
+ ------------------------------
111
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
112
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
113
+  (0.0ms) SAVEPOINT active_record_1
114
+ SQL (1.1ms) INSERT INTO "products" ("created_at", "name", "shop_id", "sizes", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 17 Sep 2016 18:44:54 UTC +00:00], ["name", "iMac"], ["shop_id", 690933842], ["sizes", "--- []\n"], ["updated_at", Sat, 17 Sep 2016 18:44:54 UTC +00:00]]
115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
116
+  (0.3ms) rollback transaction
117
+  (0.0ms) begin transaction
118
+ ----------------------------
119
+ AttributeTest: test_accessor
120
+ ----------------------------
121
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
122
+  (0.0ms) rollback transaction
123
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
124
+  (0.0ms) begin transaction
125
+ Fixture Delete (0.2ms) DELETE FROM "products"
126
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 18:45:17', '2016-09-17 18:45:17', 475308017, 690933842)
127
+ Fixture Insert (0.0ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 18:45:17', '2016-09-17 18:45:17', 94564450, 690933842)
128
+ Fixture Delete (0.0ms) DELETE FROM "shops"
129
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 18:45:17', '2016-09-17 18:45:17', 690933842)
130
+  (0.6ms) commit transaction
131
+  (0.0ms) begin transaction
132
+ ----------------------------
133
+ AttributeTest: test_accessor
134
+ ----------------------------
135
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
136
+  (0.0ms) rollback transaction
137
+  (0.0ms) begin transaction
138
+ ------------------------------
139
+ AssociationTest: test_accessor
140
+ ------------------------------
141
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
142
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
143
+  (0.0ms) SAVEPOINT active_record_1
144
+ SQL (0.2ms) INSERT INTO "products" ("created_at", "name", "shop_id", "sizes", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-09-17 18:45:17.456926"], ["name", "iMac"], ["shop_id", 690933842], ["sizes", "--- []\n"], ["updated_at", "2016-09-17 18:45:17.456926"]]
145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
146
+  (0.2ms) rollback transaction
147
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
148
+  (0.0ms) begin transaction
149
+ Fixture Delete (0.2ms) DELETE FROM "products"
150
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 18:45:23', '2016-09-17 18:45:23', 475308017, 690933842)
151
+ Fixture Insert (0.0ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 18:45:23', '2016-09-17 18:45:23', 94564450, 690933842)
152
+ Fixture Delete (0.0ms) DELETE FROM "shops"
153
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 18:45:23', '2016-09-17 18:45:23', 690933842)
154
+  (4.6ms) commit transaction
155
+  (0.1ms) begin transaction
156
+ ------------------------------
157
+ AssociationTest: test_accessor
158
+ ------------------------------
159
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
160
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
161
+  (0.0ms) SAVEPOINT active_record_1
162
+ SQL (0.2ms) INSERT INTO "products" ("created_at", "name", "shop_id", "sizes", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-09-17 18:45:23.875138"], ["name", "iMac"], ["shop_id", 690933842], ["sizes", "--- []\n"], ["updated_at", "2016-09-17 18:45:23.875138"]]
163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
164
+  (0.3ms) rollback transaction
165
+  (0.0ms) begin transaction
166
+ ----------------------------
167
+ AttributeTest: test_accessor
168
+ ----------------------------
169
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
170
+  (0.0ms) rollback transaction
171
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
172
+  (0.0ms) begin transaction
173
+ Fixture Delete (0.2ms) DELETE FROM "products"
174
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 18:45:35', '2016-09-17 18:45:35', 475308017, 690933842)
175
+ Fixture Insert (0.0ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 18:45:35', '2016-09-17 18:45:35', 94564450, 690933842)
176
+ Fixture Delete (0.0ms) DELETE FROM "shops"
177
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 18:45:35', '2016-09-17 18:45:35', 690933842)
178
+  (0.6ms) commit transaction
179
+  (0.1ms) begin transaction
180
+ ----------------------------
181
+ AttributeTest: test_accessor
182
+ ----------------------------
183
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
184
+  (0.0ms) rollback transaction
185
+  (0.0ms) begin transaction
186
+ ------------------------------
187
+ AssociationTest: test_accessor
188
+ ------------------------------
189
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
190
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
191
+  (0.1ms) SAVEPOINT active_record_1
192
+ SQL (1.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "iMac"], ["shop_id", 690933842], ["created_at", "2016-09-17 18:45:35.463967"], ["updated_at", "2016-09-17 18:45:35.463967"]]
193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
194
+  (0.3ms) rollback transaction
195
+  (0.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "shop_id" integer, "name" varchar(255), "sizes" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
196
+  (0.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
197
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
198
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
199
+  (0.1ms) SELECT version FROM "schema_migrations"
200
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160916011451')
201
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160916011427')
202
+  (0.1ms) begin transaction
203
+ Fixture Delete (0.6ms) DELETE FROM "products"
204
+ Fixture Insert (0.2ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 19:51:38', '2016-09-17 19:51:38', 475308017, 690933842)
205
+ Fixture Insert (0.0ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 19:51:38', '2016-09-17 19:51:38', 94564450, 690933842)
206
+ Fixture Delete (0.1ms) DELETE FROM "shops"
207
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 19:51:38', '2016-09-17 19:51:38', 690933842)
208
+  (0.6ms) commit transaction
209
+  (0.0ms) begin transaction
210
+ ------------------------------
211
+ AssociationTest: test_accessor
212
+ ------------------------------
213
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
214
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
215
+  (0.0ms) SAVEPOINT active_record_1
216
+ SQL (0.9ms) INSERT INTO "products" ("created_at", "name", "shop_id", "sizes", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 17 Sep 2016 19:51:38 UTC +00:00], ["name", "iMac"], ["shop_id", 690933842], ["sizes", "--- []\n"], ["updated_at", Sat, 17 Sep 2016 19:51:38 UTC +00:00]]
217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
218
+  (0.3ms) rollback transaction
219
+  (0.0ms) begin transaction
220
+ ----------------------------
221
+ AttributeTest: test_accessor
222
+ ----------------------------
223
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
224
+  (0.0ms) rollback transaction
225
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
226
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
227
+  (0.7ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "shop_id" integer, "name" varchar(255), "sizes" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
228
+  (0.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
229
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
230
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
231
+  (0.1ms) SELECT version FROM "schema_migrations"
232
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160916011451')
233
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160916011427')
234
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
235
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
236
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
237
+  (0.1ms) begin transaction
238
+ Fixture Delete (0.1ms) DELETE FROM "products"
239
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 19:57:46', '2016-09-17 19:57:46', 475308017, 690933842)
240
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 19:57:46', '2016-09-17 19:57:46', 94564450, 690933842)
241
+ Fixture Delete (0.0ms) DELETE FROM "shops"
242
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 19:57:46', '2016-09-17 19:57:46', 690933842)
243
+  (0.6ms) commit transaction
244
+  (0.0ms) begin transaction
245
+ ------------------------------
246
+ AssociationTest: test_accessor
247
+ ------------------------------
248
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
249
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
250
+  (0.0ms) SAVEPOINT active_record_1
251
+ SQL (0.7ms) INSERT INTO "products" ("created_at", "name", "shop_id", "sizes", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 17 Sep 2016 19:57:46 UTC +00:00], ["name", "iMac"], ["shop_id", 690933842], ["sizes", "--- []\n"], ["updated_at", Sat, 17 Sep 2016 19:57:46 UTC +00:00]]
252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253
+  (0.3ms) rollback transaction
254
+  (0.0ms) begin transaction
255
+ ----------------------------
256
+ AttributeTest: test_accessor
257
+ ----------------------------
258
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
259
+  (0.0ms) rollback transaction
260
+  (0.1ms) begin transaction
261
+ Fixture Delete (0.7ms) DELETE FROM "products"
262
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 20:15:05', '2016-09-17 20:15:05', 475308017, 690933842)
263
+ Fixture Insert (0.0ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 20:15:05', '2016-09-17 20:15:05', 94564450, 690933842)
264
+ Fixture Delete (0.1ms) DELETE FROM "shops"
265
+ Fixture Insert (0.1ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 20:15:05', '2016-09-17 20:15:05', 690933842)
266
+  (4.6ms) commit transaction
267
+  (0.1ms) begin transaction
268
+ ------------------------------
269
+ AssociationTest: test_accessor
270
+ ------------------------------
271
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
272
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
273
+  (0.0ms) SAVEPOINT active_record_1
274
+ SQL (0.7ms) INSERT INTO "products" ("created_at", "name", "shop_id", "sizes", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 17 Sep 2016 20:15:05 UTC +00:00], ["name", "iMac"], ["shop_id", 690933842], ["sizes", "--- []\n"], ["updated_at", Sat, 17 Sep 2016 20:15:05 UTC +00:00]]
275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
276
+  (0.3ms) rollback transaction
277
+  (0.0ms) begin transaction
278
+ ----------------------------
279
+ AttributeTest: test_accessor
280
+ ----------------------------
281
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
282
+  (0.0ms) rollback transaction
283
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
284
+  (0.0ms) begin transaction
285
+ Fixture Delete (0.2ms) DELETE FROM "products"
286
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 20:21:05', '2016-09-17 20:21:05', 475308017, 690933842)
287
+ Fixture Insert (0.0ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 20:21:05', '2016-09-17 20:21:05', 94564450, 690933842)
288
+ Fixture Delete (0.0ms) DELETE FROM "shops"
289
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 20:21:05', '2016-09-17 20:21:05', 690933842)
290
+  (0.6ms) commit transaction
291
+  (0.0ms) begin transaction
292
+ ----------------------------
293
+ AttributeTest: test_accessor
294
+ ----------------------------
295
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
296
+  (0.1ms) rollback transaction
297
+  (0.0ms) begin transaction
298
+ ------------------------------
299
+ AssociationTest: test_accessor
300
+ ------------------------------
301
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
302
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
303
+  (0.1ms) SAVEPOINT active_record_1
304
+ SQL (1.4ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "iMac"], ["shop_id", 690933842], ["created_at", "2016-09-17 20:21:05.991528"], ["updated_at", "2016-09-17 20:21:05.991528"]]
305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
306
+  (0.2ms) rollback transaction
307
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
308
+  (0.0ms) begin transaction
309
+ Fixture Delete (0.2ms) DELETE FROM "products"
310
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 20:28:27', '2016-09-17 20:28:27', 475308017, 690933842)
311
+ Fixture Insert (0.0ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 20:28:27', '2016-09-17 20:28:27', 94564450, 690933842)
312
+ Fixture Delete (0.0ms) DELETE FROM "shops"
313
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 20:28:27', '2016-09-17 20:28:27', 690933842)
314
+  (0.7ms) commit transaction
315
+  (0.0ms) begin transaction
316
+ ----------------------------
317
+ AttributeTest: test_accessor
318
+ ----------------------------
319
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 475308017]]
320
+  (0.0ms) rollback transaction
321
+  (0.0ms) begin transaction
322
+ ------------------------------
323
+ AssociationTest: test_accessor
324
+ ------------------------------
325
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 690933842]]
326
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 690933842]]
327
+  (0.0ms) SAVEPOINT active_record_1
328
+ SQL (0.7ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "iMac"], ["shop_id", 690933842], ["created_at", "2016-09-17 20:28:27.277426"], ["updated_at", "2016-09-17 20:28:27.277426"]]
329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
330
+  (0.5ms) rollback transaction
331
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
332
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "shops" DISABLE TRIGGER ALL
333
+  (0.2ms) BEGIN
334
+ Fixture Delete (0.3ms) DELETE FROM "products"
335
+ Fixture Insert (0.9ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 21:08:57', '2016-09-17 21:08:57', 475308017, 690933842)
336
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 21:08:57', '2016-09-17 21:08:57', 94564450, 690933842)
337
+ Fixture Delete (0.2ms) DELETE FROM "shops"
338
+ Fixture Insert (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 21:08:57', '2016-09-17 21:08:57', 690933842)
339
+  (6.4ms) COMMIT
340
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "shops" ENABLE TRIGGER ALL
341
+  (0.1ms) BEGIN
342
+ ------------------------------
343
+ AssociationTest: test_accessor
344
+ ------------------------------
345
+ Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 690933842]]
346
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 690933842]]
347
+  (0.2ms) ROLLBACK
348
+  (0.1ms) BEGIN
349
+ ----------------------------
350
+ AttributeTest: test_accessor
351
+ ----------------------------
352
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 475308017]]
353
+  (0.1ms) ROLLBACK
354
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
355
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "shops" DISABLE TRIGGER ALL
356
+  (0.1ms) BEGIN
357
+ Fixture Delete (0.3ms) DELETE FROM "products"
358
+ Fixture Insert (0.2ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 21:09:50', '2016-09-17 21:09:50', 475308017, 690933842)
359
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 21:09:50', '2016-09-17 21:09:50', 94564450, 690933842)
360
+ Fixture Delete (0.2ms) DELETE FROM "shops"
361
+ Fixture Insert (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 21:09:50', '2016-09-17 21:09:50', 690933842)
362
+  (4.3ms) COMMIT
363
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "shops" ENABLE TRIGGER ALL
364
+  (0.1ms) BEGIN
365
+ ------------------------------
366
+ AssociationTest: test_accessor
367
+ ------------------------------
368
+ Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 690933842]]
369
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 690933842]]
370
+  (0.3ms) SAVEPOINT active_record_1
371
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 690933842], ["created_at", "2016-09-17 21:09:51.023102"], ["updated_at", "2016-09-17 21:09:51.023102"]]
372
+  (0.1ms) RELEASE SAVEPOINT active_record_1
373
+  (0.2ms) ROLLBACK
374
+  (0.1ms) BEGIN
375
+ ----------------------------
376
+ AttributeTest: test_accessor
377
+ ----------------------------
378
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 475308017]]
379
+  (0.2ms) ROLLBACK
380
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
381
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "shops" DISABLE TRIGGER ALL
382
+  (0.1ms) BEGIN
383
+ Fixture Delete (0.3ms) DELETE FROM "products"
384
+ Fixture Insert (0.2ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 21:10:28', '2016-09-17 21:10:28', 475308017, 690933842)
385
+ Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 21:10:28', '2016-09-17 21:10:28', 94564450, 690933842)
386
+ Fixture Delete (0.2ms) DELETE FROM "shops"
387
+ Fixture Insert (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 21:10:28', '2016-09-17 21:10:28', 690933842)
388
+  (4.2ms) COMMIT
389
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "shops" ENABLE TRIGGER ALL
390
+  (0.1ms) BEGIN
391
+ ------------------------------
392
+ AssociationTest: test_accessor
393
+ ------------------------------
394
+ Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 690933842]]
395
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 690933842]]
396
+  (0.2ms) SAVEPOINT active_record_1
397
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 690933842], ["created_at", "2016-09-17 21:10:28.350963"], ["updated_at", "2016-09-17 21:10:28.350963"]]
398
+  (0.1ms) RELEASE SAVEPOINT active_record_1
399
+  (0.2ms) ROLLBACK
400
+  (0.1ms) BEGIN
401
+ ----------------------------
402
+ AttributeTest: test_accessor
403
+ ----------------------------
404
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 475308017]]
405
+  (0.1ms) ROLLBACK
406
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
407
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "shops" DISABLE TRIGGER ALL
408
+  (0.1ms) BEGIN
409
+ Fixture Delete (0.3ms) DELETE FROM "products"
410
+ Fixture Insert (0.3ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPhone', '2016-09-17 21:11:38', '2016-09-17 21:11:38', 475308017, 690933842)
411
+ Fixture Insert (0.2ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id", "shop_id") VALUES ('iPad', '2016-09-17 21:11:38', '2016-09-17 21:11:38', 94564450, 690933842)
412
+ Fixture Delete (0.2ms) DELETE FROM "shops"
413
+ Fixture Insert (0.3ms) INSERT INTO "shops" ("name", "created_at", "updated_at", "id") VALUES ('Apple', '2016-09-17 21:11:38', '2016-09-17 21:11:38', 690933842)
414
+  (0.4ms) COMMIT
415
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "shops" ENABLE TRIGGER ALL
416
+  (0.1ms) BEGIN
417
+ ------------------------------
418
+ AssociationTest: test_accessor
419
+ ------------------------------
420
+ Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 690933842]]
421
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 690933842]]
422
+  (0.2ms) SAVEPOINT active_record_1
423
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 690933842], ["created_at", "2016-09-17 21:11:38.398488"], ["updated_at", "2016-09-17 21:11:38.398488"]]
424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
425
+  (0.1ms) ROLLBACK
426
+  (0.2ms) BEGIN
427
+ ----------------------------
428
+ AttributeTest: test_accessor
429
+ ----------------------------
430
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 475308017]]
431
+  (0.1ms) ROLLBACK
432
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
433
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "shops" DISABLE TRIGGER ALL
434
+  (0.1ms) BEGIN
435
+ Fixture Delete (0.4ms) DELETE FROM "products"
436
+ Fixture Insert (0.3ms) INSERT INTO "products" ("id", "shop_id", "name", "created_at", "updated_at") VALUES (1, 1, 'iPhone', '2016-09-18 00:20:27', '2016-09-18 00:20:27')
437
+ Fixture Insert (0.1ms) INSERT INTO "products" ("id", "shop_id", "name", "created_at", "updated_at") VALUES (2, 1, 'iPad', '2016-09-18 00:20:27', '2016-09-18 00:20:27')
438
+ Fixture Delete (0.2ms) DELETE FROM "shops"
439
+ Fixture Insert (0.2ms) INSERT INTO "shops" ("id", "name", "created_at", "updated_at") VALUES (1, 'Apple', '2016-09-18 00:20:27', '2016-09-18 00:20:27')
440
+  (12.9ms) COMMIT
441
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "shops" ENABLE TRIGGER ALL
442
+  (0.1ms) BEGIN
443
+ ----------------------------
444
+ AttributeTest: test_accessor
445
+ ----------------------------
446
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 1]]
447
+  (0.2ms) ROLLBACK
448
+  (0.1ms) BEGIN
449
+ ------------------------------
450
+ AssociationTest: test_accessor
451
+ ------------------------------
452
+ Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 1]]
453
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 1]]
454
+  (0.1ms) SAVEPOINT active_record_1
455
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 1], ["created_at", "2016-09-18 00:20:27.081561"], ["updated_at", "2016-09-18 00:20:27.081561"]]
456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
457
+  (0.2ms) ROLLBACK
458
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
459
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
460
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
461
+  (0.1ms) BEGIN
462
+ Fixture Delete (0.8ms) DELETE FROM `products`
463
+ Fixture Insert (0.2ms) INSERT INTO `products` (`id`, `shop_id`, `name`, `created_at`, `updated_at`) VALUES (1, 1, 'iPhone', '2016-09-18 00:21:51', '2016-09-18 00:21:51')
464
+ Fixture Insert (0.1ms) INSERT INTO `products` (`id`, `shop_id`, `name`, `created_at`, `updated_at`) VALUES (2, 1, 'iPad', '2016-09-18 00:21:51', '2016-09-18 00:21:51')
465
+ Fixture Delete (0.1ms) DELETE FROM `shops`
466
+ Fixture Insert (0.1ms) INSERT INTO `shops` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Apple', '2016-09-18 00:21:51', '2016-09-18 00:21:51')
467
+  (0.3ms) COMMIT
468
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
469
+  (0.1ms) BEGIN
470
+ ----------------------------
471
+ AttributeTest: test_accessor
472
+ ----------------------------
473
+ Product Load (2.0ms) SELECT `products`.* FROM `products` WHERE `products`.`id` = 1 LIMIT 1
474
+  (0.1ms) ROLLBACK
475
+  (0.1ms) BEGIN
476
+ ------------------------------
477
+ AssociationTest: test_accessor
478
+ ------------------------------
479
+ Shop Load (0.2ms) SELECT `shops`.* FROM `shops` WHERE `shops`.`id` = 1 LIMIT 1
480
+ Product Load (0.5ms) SELECT `products`.* FROM `products` WHERE `products`.`shop_id` = 1
481
+  (0.4ms) SAVEPOINT active_record_1
482
+ SQL (0.2ms) INSERT INTO `products` (`name`, `shop_id`, `created_at`, `updated_at`) VALUES ('iMac', 1, '2016-09-18 00:21:51', '2016-09-18 00:21:51')
483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
484
+  (0.3ms) ROLLBACK
485
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
486
+  (0.0ms) begin transaction
487
+ Fixture Delete (0.2ms) DELETE FROM "products"
488
+ Fixture Insert (0.1ms) INSERT INTO "products" ("id", "shop_id", "name", "created_at", "updated_at") VALUES (1, 1, 'iPhone', '2016-09-18 00:22:57', '2016-09-18 00:22:57')
489
+ Fixture Insert (0.0ms) INSERT INTO "products" ("id", "shop_id", "name", "created_at", "updated_at") VALUES (2, 1, 'iPad', '2016-09-18 00:22:57', '2016-09-18 00:22:57')
490
+ Fixture Delete (0.0ms) DELETE FROM "shops"
491
+ Fixture Insert (0.0ms) INSERT INTO "shops" ("id", "name", "created_at", "updated_at") VALUES (1, 'Apple', '2016-09-18 00:22:57', '2016-09-18 00:22:57')
492
+  (4.6ms) commit transaction
493
+  (0.0ms) begin transaction
494
+ ----------------------------
495
+ AttributeTest: test_accessor
496
+ ----------------------------
497
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
498
+  (0.1ms) rollback transaction
499
+  (0.0ms) begin transaction
500
+ ------------------------------
501
+ AssociationTest: test_accessor
502
+ ------------------------------
503
+ Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 1]]
504
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = ? [["shop_id", 1]]
505
+  (0.0ms) SAVEPOINT active_record_1
506
+ SQL (0.4ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "iMac"], ["shop_id", 1], ["created_at", "2016-09-18 00:22:57.166117"], ["updated_at", "2016-09-18 00:22:57.166117"]]
507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
508
+  (0.3ms) rollback transaction
509
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
510
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "shops" DISABLE TRIGGER ALL
511
+  (0.2ms) BEGIN
512
+ Fixture Delete (0.4ms) DELETE FROM "products"
513
+ Fixture Insert (0.3ms) INSERT INTO "products" ("id", "shop_id", "name", "created_at", "updated_at") VALUES (1, 1, 'iPhone', '2016-09-18 13:22:38', '2016-09-18 13:22:38')
514
+ Fixture Insert (0.1ms) INSERT INTO "products" ("id", "shop_id", "name", "created_at", "updated_at") VALUES (2, 1, 'iPad', '2016-09-18 13:22:38', '2016-09-18 13:22:38')
515
+ Fixture Delete (0.3ms) DELETE FROM "shops"
516
+ Fixture Insert (0.2ms) INSERT INTO "shops" ("id", "name", "created_at", "updated_at") VALUES (1, 'Apple', '2016-09-18 13:22:38', '2016-09-18 13:22:38')
517
+  (13.4ms) COMMIT
518
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "shops" ENABLE TRIGGER ALL
519
+  (0.1ms) BEGIN
520
+ ----------------------------
521
+ AttributeTest: test_accessor
522
+ ----------------------------
523
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 1]]
524
+  (0.2ms) ROLLBACK
525
+  (0.1ms) BEGIN
526
+ ------------------------------
527
+ AssociationTest: test_accessor
528
+ ------------------------------
529
+ Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 1]]
530
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 1]]
531
+  (0.1ms) SAVEPOINT active_record_1
532
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 1], ["created_at", "2016-09-18 13:22:38.919634"], ["updated_at", "2016-09-18 13:22:38.919634"]]
533
+  (0.1ms) RELEASE SAVEPOINT active_record_1
534
+  (0.2ms) ROLLBACK
535
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
536
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "shops" DISABLE TRIGGER ALL
537
+  (0.1ms) BEGIN
538
+ Fixture Delete (0.3ms) DELETE FROM "products"
539
+ Fixture Insert (0.2ms) INSERT INTO "products" ("id", "shop_id", "name", "created_at", "updated_at") VALUES (1, 1, 'iPhone', '2016-09-18 13:24:50', '2016-09-18 13:24:50')
540
+ Fixture Insert (0.1ms) INSERT INTO "products" ("id", "shop_id", "name", "created_at", "updated_at") VALUES (2, 1, 'iPad', '2016-09-18 13:24:50', '2016-09-18 13:24:50')
541
+ Fixture Delete (0.2ms) DELETE FROM "shops"
542
+ Fixture Insert (0.2ms) INSERT INTO "shops" ("id", "name", "created_at", "updated_at") VALUES (1, 'Apple', '2016-09-18 13:24:50', '2016-09-18 13:24:50')
543
+  (4.2ms) COMMIT
544
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "shops" ENABLE TRIGGER ALL
545
+  (0.1ms) BEGIN
546
+ ------------------------------
547
+ AssociationTest: test_accessor
548
+ ------------------------------
549
+ Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT 1 [["id", 1]]
550
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 1]]
551
+  (0.2ms) SAVEPOINT active_record_1
552
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 1], ["created_at", "2016-09-18 13:24:50.529334"], ["updated_at", "2016-09-18 13:24:50.529334"]]
553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
554
+  (0.2ms) ROLLBACK
555
+  (0.1ms) BEGIN
556
+ ----------------------------
557
+ AttributeTest: test_accessor
558
+ ----------------------------
559
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 1]]
560
+  (0.2ms) ROLLBACK