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