simple_recommender 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple_recommender/recommendable.rb +33 -42
- data/lib/simple_recommender/version.rb +1 -1
- data/test/dummy/app/models/book.rb +3 -1
- data/test/dummy/log/test.log +1037 -0
- data/test/dummy/test/models/book_test.rb +2 -51
- metadata +2 -2
data/test/dummy/log/test.log
CHANGED
@@ -5622,3 +5622,1040 @@ SimpleRecommenderTest: test_module_exists
|
|
5622
5622
|
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
|
5623
5623
|
[1m[36mBook Load (0.4ms)[0m [1mSELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1[0m
|
5624
5624
|
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
|
5625
|
+
[1m[36mActiveRecord::SchemaMigration Load (34.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5626
|
+
[1m[35mBook Load (3.3ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
5627
|
+
[1m[36m (18.5ms)[0m [1mALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
5628
|
+
[1m[35m (6.4ms)[0m BEGIN
|
5629
|
+
[1m[36mFixture Delete (13.5ms)[0m [1mDELETE FROM "books_tags"[0m
|
5630
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "books"
|
5631
|
+
[1m[36mFixture Insert (6.6ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)[0m
|
5632
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)
|
5633
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)[0m
|
5634
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)
|
5635
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)[0m
|
5636
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)
|
5637
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)[0m
|
5638
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)
|
5639
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)[0m
|
5640
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)
|
5641
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)[0m
|
5642
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)
|
5643
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)[0m
|
5644
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)
|
5645
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)[0m
|
5646
|
+
[1m[35mFixture Insert (2.6ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 266251676)
|
5647
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 644331355)[0m
|
5648
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 508637499)
|
5649
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 168464791)[0m
|
5650
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 572977986)
|
5651
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 857228561)[0m
|
5652
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 436277767)
|
5653
|
+
[1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "likes"[0m
|
5654
|
+
[1m[35mFixture Insert (3.2ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 683130438, 557192574, 266251676)
|
5655
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 834596858, 557192574, 644331355)[0m
|
5656
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 112844655, 944878372, 266251676)
|
5657
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 417155790, 944878372, 508637499)[0m
|
5658
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 802847325, 492947529, 644331355)
|
5659
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 919808993, 492947529, 508637499)[0m
|
5660
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 30677878, 165965450, 168464791)
|
5661
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 292226793, 165965450, 572977986)[0m
|
5662
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 644626036, 3097974, 168464791)
|
5663
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 1063610316, 3097974, 572977986)[0m
|
5664
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 140662621, 3097974, 857228561)
|
5665
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 369541888, 283047497, 168464791)[0m
|
5666
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 553775723, 283047497, 572977986)
|
5667
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 02:47:04', '2017-02-17 02:47:04', 940090323, 283047497, 436277767)[0m
|
5668
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM "tags"
|
5669
|
+
[1m[36mFixture Insert (2.9ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 794233342)[0m
|
5670
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 405042892)
|
5671
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 270779907)[0m
|
5672
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 32674512)
|
5673
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 393102864)[0m
|
5674
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 223486541)
|
5675
|
+
[1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "users"[0m
|
5676
|
+
[1m[35mFixture Insert (1.7ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 557192574)
|
5677
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 944878372)[0m
|
5678
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 492947529)
|
5679
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 165965450)[0m
|
5680
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 3097974)
|
5681
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 02:47:04', '2017-02-17 02:47:04', 283047497)[0m
|
5682
|
+
[1m[35m (0.5ms)[0m COMMIT
|
5683
|
+
[1m[36m (0.7ms)[0m [1mALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL[0m
|
5684
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5685
|
+
-----------------------------------------
|
5686
|
+
SimpleRecommenderTest: test_module_exists
|
5687
|
+
-----------------------------------------
|
5688
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5689
|
+
[1m[36mActiveRecord::SchemaMigration Load (27.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5690
|
+
[1m[35m (5.1ms)[0m ALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
|
5691
|
+
[1m[36m (6.4ms)[0m [1mALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL[0m
|
5692
|
+
[1m[36mActiveRecord::SchemaMigration Load (30.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5693
|
+
[1m[35mBook Load (3.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
5694
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
5695
|
+
[1m[35m (0.2ms)[0m BEGIN
|
5696
|
+
[1m[36mFixture Delete (2.6ms)[0m [1mDELETE FROM "books_tags"[0m
|
5697
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "books"
|
5698
|
+
[1m[36mFixture Insert (23.5ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)[0m
|
5699
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)
|
5700
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)[0m
|
5701
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)
|
5702
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)[0m
|
5703
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)
|
5704
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)[0m
|
5705
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)
|
5706
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)[0m
|
5707
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)
|
5708
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)[0m
|
5709
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)
|
5710
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)[0m
|
5711
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)
|
5712
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)[0m
|
5713
|
+
[1m[35mFixture Insert (2.5ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 266251676)
|
5714
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 644331355)[0m
|
5715
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 508637499)
|
5716
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 168464791)[0m
|
5717
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 572977986)
|
5718
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 857228561)[0m
|
5719
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 436277767)
|
5720
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "likes"[0m
|
5721
|
+
[1m[35mFixture Insert (2.8ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 683130438, 557192574, 266251676)
|
5722
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 834596858, 557192574, 644331355)[0m
|
5723
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 112844655, 944878372, 266251676)
|
5724
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 417155790, 944878372, 508637499)[0m
|
5725
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 802847325, 492947529, 644331355)
|
5726
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 919808993, 492947529, 508637499)[0m
|
5727
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 30677878, 165965450, 168464791)
|
5728
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 292226793, 165965450, 572977986)[0m
|
5729
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 644626036, 3097974, 168464791)
|
5730
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 1063610316, 3097974, 572977986)[0m
|
5731
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 140662621, 3097974, 857228561)
|
5732
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 369541888, 283047497, 168464791)[0m
|
5733
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 553775723, 283047497, 572977986)
|
5734
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:06:50', '2017-02-17 03:06:50', 940090323, 283047497, 436277767)[0m
|
5735
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "tags"
|
5736
|
+
[1m[36mFixture Insert (0.9ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 794233342)[0m
|
5737
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 405042892)
|
5738
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 270779907)[0m
|
5739
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 32674512)
|
5740
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 393102864)[0m
|
5741
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 223486541)
|
5742
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "users"[0m
|
5743
|
+
[1m[35mFixture Insert (2.4ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 557192574)
|
5744
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 944878372)[0m
|
5745
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 492947529)
|
5746
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 165965450)[0m
|
5747
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 3097974)
|
5748
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:06:50', '2017-02-17 03:06:50', 283047497)[0m
|
5749
|
+
[1m[35m (0.4ms)[0m COMMIT
|
5750
|
+
[1m[36m (2.1ms)[0m [1mALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL[0m
|
5751
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5752
|
+
-----------------------------------------
|
5753
|
+
SimpleRecommenderTest: test_module_exists
|
5754
|
+
-----------------------------------------
|
5755
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5756
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5757
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
|
5758
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
5759
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "books_tags"
|
5760
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "books"[0m
|
5761
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)
|
5762
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)[0m
|
5763
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)
|
5764
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)[0m
|
5765
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)
|
5766
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)[0m
|
5767
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)
|
5768
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)[0m
|
5769
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)
|
5770
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)[0m
|
5771
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)
|
5772
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)[0m
|
5773
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)
|
5774
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)[0m
|
5775
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)
|
5776
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 266251676)[0m
|
5777
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 644331355)
|
5778
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 508637499)[0m
|
5779
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 168464791)
|
5780
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 572977986)[0m
|
5781
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 857228561)
|
5782
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 436277767)[0m
|
5783
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "likes"
|
5784
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 683130438, 557192574, 266251676)[0m
|
5785
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 834596858, 557192574, 644331355)
|
5786
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 112844655, 944878372, 266251676)[0m
|
5787
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 417155790, 944878372, 508637499)
|
5788
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 802847325, 492947529, 644331355)[0m
|
5789
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 919808993, 492947529, 508637499)
|
5790
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 30677878, 165965450, 168464791)[0m
|
5791
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 292226793, 165965450, 572977986)
|
5792
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 644626036, 3097974, 168464791)[0m
|
5793
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 1063610316, 3097974, 572977986)
|
5794
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 140662621, 3097974, 857228561)[0m
|
5795
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 369541888, 283047497, 168464791)
|
5796
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 553775723, 283047497, 572977986)[0m
|
5797
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:01', '2017-02-17 03:07:01', 940090323, 283047497, 436277767)
|
5798
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "tags"[0m
|
5799
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 794233342)
|
5800
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 405042892)[0m
|
5801
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 270779907)
|
5802
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 32674512)[0m
|
5803
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 393102864)
|
5804
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 223486541)[0m
|
5805
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
5806
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 557192574)[0m
|
5807
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 944878372)
|
5808
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 492947529)[0m
|
5809
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 165965450)
|
5810
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 3097974)[0m
|
5811
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:07:01', '2017-02-17 03:07:01', 283047497)
|
5812
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
5813
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
|
5814
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
5815
|
+
-----------------------------------------
|
5816
|
+
SimpleRecommenderTest: test_module_exists
|
5817
|
+
-----------------------------------------
|
5818
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
5819
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Ruby"]]
|
5820
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning C++"]]
|
5821
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Playing Violin"]]
|
5822
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
5823
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Python"]]
|
5824
|
+
[1m[36mActiveRecord::SchemaMigration Load (14.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5825
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
|
5826
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
5827
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "books_tags"
|
5828
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "books"[0m
|
5829
|
+
[1m[35mFixture Insert (26.4ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)
|
5830
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)[0m
|
5831
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)
|
5832
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)[0m
|
5833
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)
|
5834
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)[0m
|
5835
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)
|
5836
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)[0m
|
5837
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)
|
5838
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)[0m
|
5839
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)
|
5840
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)[0m
|
5841
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)
|
5842
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)[0m
|
5843
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)
|
5844
|
+
[1m[36mFixture Insert (2.4ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 266251676)[0m
|
5845
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 644331355)
|
5846
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 508637499)[0m
|
5847
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 168464791)
|
5848
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 572977986)[0m
|
5849
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 857228561)
|
5850
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 436277767)[0m
|
5851
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "likes"
|
5852
|
+
[1m[36mFixture Insert (3.2ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 683130438, 557192574, 266251676)[0m
|
5853
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 834596858, 557192574, 644331355)
|
5854
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 112844655, 944878372, 266251676)[0m
|
5855
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 417155790, 944878372, 508637499)
|
5856
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 802847325, 492947529, 644331355)[0m
|
5857
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 919808993, 492947529, 508637499)
|
5858
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 30677878, 165965450, 168464791)[0m
|
5859
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 292226793, 165965450, 572977986)
|
5860
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 644626036, 3097974, 168464791)[0m
|
5861
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 1063610316, 3097974, 572977986)
|
5862
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 140662621, 3097974, 857228561)[0m
|
5863
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 369541888, 283047497, 168464791)
|
5864
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 553775723, 283047497, 572977986)[0m
|
5865
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:07:53', '2017-02-17 03:07:53', 940090323, 283047497, 436277767)
|
5866
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "tags"[0m
|
5867
|
+
[1m[35mFixture Insert (0.7ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 794233342)
|
5868
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 405042892)[0m
|
5869
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 270779907)
|
5870
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 32674512)[0m
|
5871
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 393102864)
|
5872
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 223486541)[0m
|
5873
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "users"
|
5874
|
+
[1m[36mFixture Insert (1.4ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 557192574)[0m
|
5875
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 944878372)
|
5876
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 492947529)[0m
|
5877
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 165965450)
|
5878
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 3097974)[0m
|
5879
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:07:53', '2017-02-17 03:07:53', 283047497)
|
5880
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
5881
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
|
5882
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
5883
|
+
-----------------------------------------
|
5884
|
+
SimpleRecommenderTest: test_module_exists
|
5885
|
+
-----------------------------------------
|
5886
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
5887
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Ruby"]]
|
5888
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning C++"]]
|
5889
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Playing Violin"]]
|
5890
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
5891
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "likes" ON "users"."id" = "likes"."user_id" WHERE "likes"."book_id" = $1[0m [["book_id", 572977986]]
|
5892
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
5893
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "likes" ON "users"."id" = "likes"."user_id" WHERE "likes"."book_id" = $1[0m [["book_id", 572977986]]
|
5894
|
+
[1m[36mActiveRecord::SchemaMigration Load (20.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5895
|
+
[1m[35mBook Load (0.3ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Ruby"]]
|
5896
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning C++"]]
|
5897
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Playing Violin"]]
|
5898
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Python"]]
|
5899
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
5900
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
5901
|
+
[1m[35m (0.2ms)[0m BEGIN
|
5902
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "books_tags"[0m
|
5903
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "books"
|
5904
|
+
[1m[36mFixture Insert (20.8ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)[0m
|
5905
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)
|
5906
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)[0m
|
5907
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)
|
5908
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)[0m
|
5909
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)
|
5910
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)[0m
|
5911
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)
|
5912
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)[0m
|
5913
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)
|
5914
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)[0m
|
5915
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)
|
5916
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)[0m
|
5917
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)
|
5918
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)[0m
|
5919
|
+
[1m[35mFixture Insert (1.9ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 266251676)
|
5920
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 644331355)[0m
|
5921
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 508637499)
|
5922
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 168464791)[0m
|
5923
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 572977986)
|
5924
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 857228561)[0m
|
5925
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 436277767)
|
5926
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "likes"[0m
|
5927
|
+
[1m[35mFixture Insert (2.8ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 683130438, 557192574, 266251676)
|
5928
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 834596858, 557192574, 644331355)[0m
|
5929
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 112844655, 944878372, 266251676)
|
5930
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 417155790, 944878372, 508637499)[0m
|
5931
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 802847325, 492947529, 644331355)
|
5932
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 919808993, 492947529, 508637499)[0m
|
5933
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 30677878, 165965450, 168464791)
|
5934
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 292226793, 165965450, 572977986)[0m
|
5935
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 644626036, 3097974, 168464791)
|
5936
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 1063610316, 3097974, 572977986)[0m
|
5937
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 140662621, 3097974, 857228561)
|
5938
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 369541888, 283047497, 168464791)[0m
|
5939
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 553775723, 283047497, 572977986)
|
5940
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:09:20', '2017-02-17 03:09:20', 940090323, 283047497, 436277767)[0m
|
5941
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "tags"
|
5942
|
+
[1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 794233342)[0m
|
5943
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 405042892)
|
5944
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 270779907)[0m
|
5945
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 32674512)
|
5946
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 393102864)[0m
|
5947
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 223486541)
|
5948
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "users"[0m
|
5949
|
+
[1m[35mFixture Insert (1.6ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 557192574)
|
5950
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 944878372)[0m
|
5951
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 492947529)
|
5952
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 165965450)[0m
|
5953
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 3097974)
|
5954
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:09:20', '2017-02-17 03:09:20', 283047497)[0m
|
5955
|
+
[1m[35m (0.4ms)[0m COMMIT
|
5956
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL[0m
|
5957
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5958
|
+
-----------------------------------------
|
5959
|
+
SimpleRecommenderTest: test_module_exists
|
5960
|
+
-----------------------------------------
|
5961
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5962
|
+
[1m[36mActiveRecord::SchemaMigration Load (24.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5963
|
+
[1m[35mBook Load (0.3ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
5964
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Ruby"]]
|
5965
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning C++"]]
|
5966
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Playing Violin"]]
|
5967
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
5968
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
5969
|
+
[1m[35m (0.2ms)[0m BEGIN
|
5970
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "books_tags"[0m
|
5971
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "books"
|
5972
|
+
[1m[36mFixture Insert (24.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)[0m
|
5973
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)
|
5974
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)[0m
|
5975
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)
|
5976
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)[0m
|
5977
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)
|
5978
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)[0m
|
5979
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)
|
5980
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)[0m
|
5981
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)
|
5982
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)[0m
|
5983
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)
|
5984
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)[0m
|
5985
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)
|
5986
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)[0m
|
5987
|
+
[1m[35mFixture Insert (1.9ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 266251676)
|
5988
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 644331355)[0m
|
5989
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 508637499)
|
5990
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 168464791)[0m
|
5991
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 572977986)
|
5992
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 857228561)[0m
|
5993
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 436277767)
|
5994
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "likes"[0m
|
5995
|
+
[1m[35mFixture Insert (2.9ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 683130438, 557192574, 266251676)
|
5996
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 834596858, 557192574, 644331355)[0m
|
5997
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 112844655, 944878372, 266251676)
|
5998
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 417155790, 944878372, 508637499)[0m
|
5999
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 802847325, 492947529, 644331355)
|
6000
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 919808993, 492947529, 508637499)[0m
|
6001
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 30677878, 165965450, 168464791)
|
6002
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 292226793, 165965450, 572977986)[0m
|
6003
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 644626036, 3097974, 168464791)
|
6004
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 1063610316, 3097974, 572977986)[0m
|
6005
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 140662621, 3097974, 857228561)
|
6006
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 369541888, 283047497, 168464791)[0m
|
6007
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 553775723, 283047497, 572977986)
|
6008
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:10:53', '2017-02-17 03:10:53', 940090323, 283047497, 436277767)[0m
|
6009
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "tags"
|
6010
|
+
[1m[36mFixture Insert (1.5ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 794233342)[0m
|
6011
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 405042892)
|
6012
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 270779907)[0m
|
6013
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 32674512)
|
6014
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 393102864)[0m
|
6015
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 223486541)
|
6016
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "users"[0m
|
6017
|
+
[1m[35mFixture Insert (1.7ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 557192574)
|
6018
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 944878372)[0m
|
6019
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 492947529)
|
6020
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 165965450)[0m
|
6021
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 3097974)
|
6022
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:10:53', '2017-02-17 03:10:53', 283047497)[0m
|
6023
|
+
[1m[35m (0.6ms)[0m COMMIT
|
6024
|
+
[1m[36m (0.7ms)[0m [1mALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL[0m
|
6025
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6026
|
+
-----------------------------------------
|
6027
|
+
SimpleRecommenderTest: test_module_exists
|
6028
|
+
-----------------------------------------
|
6029
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6030
|
+
[1m[36mActiveRecord::SchemaMigration Load (25.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6031
|
+
[1m[35mBook Load (3.0ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Ruby"]]
|
6032
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning C++"]]
|
6033
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Playing Violin"]]
|
6034
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Python"]]
|
6035
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
6036
|
+
[1m[36m (1.6ms)[0m [1mALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
6037
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6038
|
+
[1m[36mFixture Delete (2.1ms)[0m [1mDELETE FROM "books_tags"[0m
|
6039
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "books"
|
6040
|
+
[1m[36mFixture Insert (24.6ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)[0m
|
6041
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)
|
6042
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)[0m
|
6043
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)
|
6044
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)[0m
|
6045
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)
|
6046
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)[0m
|
6047
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)
|
6048
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)[0m
|
6049
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)
|
6050
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)[0m
|
6051
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)
|
6052
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)[0m
|
6053
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)
|
6054
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)[0m
|
6055
|
+
[1m[35mFixture Insert (2.2ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 266251676)
|
6056
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 644331355)[0m
|
6057
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 508637499)
|
6058
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 168464791)[0m
|
6059
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 572977986)
|
6060
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 857228561)[0m
|
6061
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 436277767)
|
6062
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "likes"[0m
|
6063
|
+
[1m[35mFixture Insert (3.0ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 683130438, 557192574, 266251676)
|
6064
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 834596858, 557192574, 644331355)[0m
|
6065
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 112844655, 944878372, 266251676)
|
6066
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 417155790, 944878372, 508637499)[0m
|
6067
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 802847325, 492947529, 644331355)
|
6068
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 919808993, 492947529, 508637499)[0m
|
6069
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 30677878, 165965450, 168464791)
|
6070
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 292226793, 165965450, 572977986)[0m
|
6071
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 644626036, 3097974, 168464791)
|
6072
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 1063610316, 3097974, 572977986)[0m
|
6073
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 140662621, 3097974, 857228561)
|
6074
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 369541888, 283047497, 168464791)[0m
|
6075
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 553775723, 283047497, 572977986)
|
6076
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:18', '2017-02-17 03:12:18', 940090323, 283047497, 436277767)[0m
|
6077
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "tags"
|
6078
|
+
[1m[36mFixture Insert (1.7ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 794233342)[0m
|
6079
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 405042892)
|
6080
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 270779907)[0m
|
6081
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 32674512)
|
6082
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 393102864)[0m
|
6083
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 223486541)
|
6084
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "users"[0m
|
6085
|
+
[1m[35mFixture Insert (1.6ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 557192574)
|
6086
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 944878372)[0m
|
6087
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 492947529)
|
6088
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 165965450)[0m
|
6089
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 3097974)
|
6090
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:12:18', '2017-02-17 03:12:18', 283047497)[0m
|
6091
|
+
[1m[35m (0.5ms)[0m COMMIT
|
6092
|
+
[1m[36m (0.7ms)[0m [1mALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL[0m
|
6093
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6094
|
+
-----------------------------------------
|
6095
|
+
SimpleRecommenderTest: test_module_exists
|
6096
|
+
-----------------------------------------
|
6097
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6098
|
+
[1m[36mActiveRecord::SchemaMigration Load (19.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6099
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
|
6100
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
6101
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "books_tags"
|
6102
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "books"[0m
|
6103
|
+
[1m[35mFixture Insert (27.4ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)
|
6104
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)[0m
|
6105
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)
|
6106
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)[0m
|
6107
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)
|
6108
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)[0m
|
6109
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)
|
6110
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)[0m
|
6111
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)
|
6112
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)[0m
|
6113
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)
|
6114
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)[0m
|
6115
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)
|
6116
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)[0m
|
6117
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)
|
6118
|
+
[1m[36mFixture Insert (1.8ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 266251676)[0m
|
6119
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 644331355)
|
6120
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 508637499)[0m
|
6121
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 168464791)
|
6122
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 572977986)[0m
|
6123
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 857228561)
|
6124
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 436277767)[0m
|
6125
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "likes"
|
6126
|
+
[1m[36mFixture Insert (2.3ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 683130438, 557192574, 266251676)[0m
|
6127
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 834596858, 557192574, 644331355)
|
6128
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 112844655, 944878372, 266251676)[0m
|
6129
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 417155790, 944878372, 508637499)
|
6130
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 802847325, 492947529, 644331355)[0m
|
6131
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 919808993, 492947529, 508637499)
|
6132
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 30677878, 165965450, 168464791)[0m
|
6133
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 292226793, 165965450, 572977986)
|
6134
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 644626036, 3097974, 168464791)[0m
|
6135
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 1063610316, 3097974, 572977986)
|
6136
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 140662621, 3097974, 857228561)[0m
|
6137
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 369541888, 283047497, 168464791)
|
6138
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 553775723, 283047497, 572977986)[0m
|
6139
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:12:40', '2017-02-17 03:12:40', 940090323, 283047497, 436277767)
|
6140
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "tags"[0m
|
6141
|
+
[1m[35mFixture Insert (1.3ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 794233342)
|
6142
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 405042892)[0m
|
6143
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 270779907)
|
6144
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 32674512)[0m
|
6145
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 393102864)
|
6146
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 223486541)[0m
|
6147
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
6148
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 557192574)[0m
|
6149
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 944878372)
|
6150
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 492947529)[0m
|
6151
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 165965450)
|
6152
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 3097974)[0m
|
6153
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:12:40', '2017-02-17 03:12:40', 283047497)
|
6154
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
6155
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
|
6156
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6157
|
+
-----------------------------------------
|
6158
|
+
SimpleRecommenderTest: test_module_exists
|
6159
|
+
-----------------------------------------
|
6160
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6161
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Ruby"]]
|
6162
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning C++"]]
|
6163
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Playing Violin"]]
|
6164
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
6165
|
+
[1m[36mBook Load (30.1ms)[0m [1m WITH similar_items AS (
|
6166
|
+
SELECT
|
6167
|
+
t2.book_id,
|
6168
|
+
(# (array_agg(DISTINCT t1.user_id) & array_agg(DISTINCT t2.user_id)))::float/
|
6169
|
+
(# (array_agg(DISTINCT t1.user_id) | array_agg(DISTINCT t2.user_id)))::float as similarity
|
6170
|
+
FROM likes AS t1, likes AS t2
|
6171
|
+
WHERE t1.book_id = 572977986 and t2.book_id != 572977986
|
6172
|
+
GROUP BY t2.book_id
|
6173
|
+
ORDER BY similarity DESC
|
6174
|
+
LIMIT 3
|
6175
|
+
)
|
6176
|
+
SELECT books.*, similarity
|
6177
|
+
FROM similar_items
|
6178
|
+
JOIN books ON books.id = similar_items.book_id
|
6179
|
+
ORDER BY similarity DESC;
|
6180
|
+
[0m
|
6181
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
6182
|
+
[1m[36mBook Load (0.7ms)[0m [1m WITH similar_items AS (
|
6183
|
+
SELECT
|
6184
|
+
t2.book_id,
|
6185
|
+
(# (array_agg(DISTINCT t1.user_id) & array_agg(DISTINCT t2.user_id)))::float/
|
6186
|
+
(# (array_agg(DISTINCT t1.user_id) | array_agg(DISTINCT t2.user_id)))::float as similarity
|
6187
|
+
FROM likes AS t1, likes AS t2
|
6188
|
+
WHERE t1.book_id = 572977986 and t2.book_id != 572977986
|
6189
|
+
GROUP BY t2.book_id
|
6190
|
+
ORDER BY similarity DESC
|
6191
|
+
LIMIT 3
|
6192
|
+
)
|
6193
|
+
SELECT books.*, similarity
|
6194
|
+
FROM similar_items
|
6195
|
+
JOIN books ON books.id = similar_items.book_id
|
6196
|
+
ORDER BY similarity DESC;
|
6197
|
+
[0m
|
6198
|
+
[1m[36mActiveRecord::SchemaMigration Load (26.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6199
|
+
[1m[35m (5.6ms)[0m ALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
|
6200
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
6201
|
+
[1m[35mFixture Delete (2.5ms)[0m DELETE FROM "books_tags"
|
6202
|
+
[1m[36mFixture Delete (4.6ms)[0m [1mDELETE FROM "books"[0m
|
6203
|
+
[1m[35mFixture Insert (27.5ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)
|
6204
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)[0m
|
6205
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)
|
6206
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)[0m
|
6207
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)
|
6208
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)[0m
|
6209
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)
|
6210
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)[0m
|
6211
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)
|
6212
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)[0m
|
6213
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)
|
6214
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)[0m
|
6215
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)
|
6216
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)[0m
|
6217
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)
|
6218
|
+
[1m[36mFixture Insert (2.2ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 266251676)[0m
|
6219
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 644331355)
|
6220
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 508637499)[0m
|
6221
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 168464791)
|
6222
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 572977986)[0m
|
6223
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 857228561)
|
6224
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 436277767)[0m
|
6225
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "likes"
|
6226
|
+
[1m[36mFixture Insert (3.2ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 683130438, 557192574, 266251676)[0m
|
6227
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 834596858, 557192574, 644331355)
|
6228
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 112844655, 944878372, 266251676)[0m
|
6229
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 417155790, 944878372, 508637499)
|
6230
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 802847325, 492947529, 644331355)[0m
|
6231
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 919808993, 492947529, 508637499)
|
6232
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 30677878, 165965450, 168464791)[0m
|
6233
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 292226793, 165965450, 572977986)
|
6234
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 644626036, 3097974, 168464791)[0m
|
6235
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 1063610316, 3097974, 572977986)
|
6236
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 140662621, 3097974, 857228561)[0m
|
6237
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 369541888, 283047497, 168464791)
|
6238
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 553775723, 283047497, 572977986)[0m
|
6239
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:20:22', '2017-02-17 03:20:22', 940090323, 283047497, 436277767)
|
6240
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "tags"[0m
|
6241
|
+
[1m[35mFixture Insert (1.7ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 794233342)
|
6242
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 405042892)[0m
|
6243
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 270779907)
|
6244
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 32674512)[0m
|
6245
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 393102864)
|
6246
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 223486541)[0m
|
6247
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "users"
|
6248
|
+
[1m[36mFixture Insert (1.6ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 557192574)[0m
|
6249
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 944878372)
|
6250
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 492947529)[0m
|
6251
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 165965450)
|
6252
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 3097974)[0m
|
6253
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:20:22', '2017-02-17 03:20:22', 283047497)
|
6254
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
6255
|
+
[1m[35m (2.0ms)[0m ALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
|
6256
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6257
|
+
-----------------------------------------
|
6258
|
+
SimpleRecommenderTest: test_module_exists
|
6259
|
+
-----------------------------------------
|
6260
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6261
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Ruby"]]
|
6262
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning C++"]]
|
6263
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Playing Violin"]]
|
6264
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
6265
|
+
[1m[36mBook Load (21.0ms)[0m [1m WITH similar_items AS (
|
6266
|
+
SELECT
|
6267
|
+
t2.book_id,
|
6268
|
+
(# (array_agg(DISTINCT t1.user_id) & array_agg(DISTINCT t2.user_id)))::float/
|
6269
|
+
(# (array_agg(DISTINCT t1.user_id) | array_agg(DISTINCT t2.user_id)))::float as similarity
|
6270
|
+
FROM likes AS t1, likes AS t2
|
6271
|
+
WHERE t1.book_id = 572977986 and t2.book_id != 572977986
|
6272
|
+
GROUP BY t2.book_id
|
6273
|
+
ORDER BY similarity DESC
|
6274
|
+
LIMIT 3
|
6275
|
+
)
|
6276
|
+
SELECT books.*, similarity
|
6277
|
+
FROM similar_items
|
6278
|
+
JOIN books ON books.id = similar_items.book_id
|
6279
|
+
ORDER BY similarity DESC;
|
6280
|
+
[0m
|
6281
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
6282
|
+
[1m[36mBook Load (1.1ms)[0m [1m WITH similar_items AS (
|
6283
|
+
SELECT
|
6284
|
+
t2.book_id,
|
6285
|
+
(# (array_agg(DISTINCT t1.user_id) & array_agg(DISTINCT t2.user_id)))::float/
|
6286
|
+
(# (array_agg(DISTINCT t1.user_id) | array_agg(DISTINCT t2.user_id)))::float as similarity
|
6287
|
+
FROM likes AS t1, likes AS t2
|
6288
|
+
WHERE t1.book_id = 572977986 and t2.book_id != 572977986
|
6289
|
+
GROUP BY t2.book_id
|
6290
|
+
ORDER BY similarity DESC
|
6291
|
+
LIMIT 3
|
6292
|
+
)
|
6293
|
+
SELECT books.*, similarity
|
6294
|
+
FROM similar_items
|
6295
|
+
JOIN books ON books.id = similar_items.book_id
|
6296
|
+
ORDER BY similarity DESC;
|
6297
|
+
[0m
|
6298
|
+
[1m[36mActiveRecord::SchemaMigration Load (28.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6299
|
+
[1m[35mBook Load (3.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Ruby"]]
|
6300
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning C++"]]
|
6301
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Playing Violin"]]
|
6302
|
+
[1m[36mBook Load (0.4ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Python"]]
|
6303
|
+
[1m[35mBook Load (31.2ms)[0m WITH similar_items AS (
|
6304
|
+
SELECT
|
6305
|
+
t2.book_id,
|
6306
|
+
(# (array_agg(DISTINCT t1.user_id) & array_agg(DISTINCT t2.user_id)))::float/
|
6307
|
+
(# (array_agg(DISTINCT t1.user_id) | array_agg(DISTINCT t2.user_id)))::float as similarity
|
6308
|
+
FROM likes AS t1, likes AS t2
|
6309
|
+
WHERE t1.book_id = 572977986 and t2.book_id != 572977986
|
6310
|
+
GROUP BY t2.book_id
|
6311
|
+
ORDER BY similarity DESC
|
6312
|
+
LIMIT 3
|
6313
|
+
)
|
6314
|
+
SELECT books.*, similarity
|
6315
|
+
FROM similar_items
|
6316
|
+
JOIN books ON books.id = similar_items.book_id
|
6317
|
+
ORDER BY similarity DESC;
|
6318
|
+
|
6319
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Python"]]
|
6320
|
+
[1m[35mBook Load (0.8ms)[0m WITH similar_items AS (
|
6321
|
+
SELECT
|
6322
|
+
t2.book_id,
|
6323
|
+
(# (array_agg(DISTINCT t1.user_id) & array_agg(DISTINCT t2.user_id)))::float/
|
6324
|
+
(# (array_agg(DISTINCT t1.user_id) | array_agg(DISTINCT t2.user_id)))::float as similarity
|
6325
|
+
FROM likes AS t1, likes AS t2
|
6326
|
+
WHERE t1.book_id = 572977986 and t2.book_id != 572977986
|
6327
|
+
GROUP BY t2.book_id
|
6328
|
+
ORDER BY similarity DESC
|
6329
|
+
LIMIT 3
|
6330
|
+
)
|
6331
|
+
SELECT books.*, similarity
|
6332
|
+
FROM similar_items
|
6333
|
+
JOIN books ON books.id = similar_items.book_id
|
6334
|
+
ORDER BY similarity DESC;
|
6335
|
+
|
6336
|
+
[1m[36m (3.5ms)[0m [1mALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
6337
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6338
|
+
[1m[36mFixture Delete (2.3ms)[0m [1mDELETE FROM "books_tags"[0m
|
6339
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "books"
|
6340
|
+
[1m[36mFixture Insert (19.8ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)[0m
|
6341
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)
|
6342
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)[0m
|
6343
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)
|
6344
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)[0m
|
6345
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)
|
6346
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)[0m
|
6347
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)
|
6348
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)[0m
|
6349
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)
|
6350
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)[0m
|
6351
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)
|
6352
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)[0m
|
6353
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)
|
6354
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)[0m
|
6355
|
+
[1m[35mFixture Insert (2.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 266251676)
|
6356
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 644331355)[0m
|
6357
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 508637499)
|
6358
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 168464791)[0m
|
6359
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 572977986)
|
6360
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 857228561)[0m
|
6361
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 436277767)
|
6362
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "likes"[0m
|
6363
|
+
[1m[35mFixture Insert (2.8ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 683130438, 557192574, 266251676)
|
6364
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 834596858, 557192574, 644331355)[0m
|
6365
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 112844655, 944878372, 266251676)
|
6366
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 417155790, 944878372, 508637499)[0m
|
6367
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 802847325, 492947529, 644331355)
|
6368
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 919808993, 492947529, 508637499)[0m
|
6369
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 30677878, 165965450, 168464791)
|
6370
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 292226793, 165965450, 572977986)[0m
|
6371
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 644626036, 3097974, 168464791)
|
6372
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 1063610316, 3097974, 572977986)[0m
|
6373
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 140662621, 3097974, 857228561)
|
6374
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 369541888, 283047497, 168464791)[0m
|
6375
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 553775723, 283047497, 572977986)
|
6376
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:23:57', '2017-02-17 03:23:57', 940090323, 283047497, 436277767)[0m
|
6377
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "tags"
|
6378
|
+
[1m[36mFixture Insert (1.7ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 794233342)[0m
|
6379
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 405042892)
|
6380
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 270779907)[0m
|
6381
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 32674512)
|
6382
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 393102864)[0m
|
6383
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 223486541)
|
6384
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "users"[0m
|
6385
|
+
[1m[35mFixture Insert (1.6ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 557192574)
|
6386
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 944878372)[0m
|
6387
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 492947529)
|
6388
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 165965450)[0m
|
6389
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 3097974)
|
6390
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:23:57', '2017-02-17 03:23:57', 283047497)[0m
|
6391
|
+
[1m[35m (0.6ms)[0m COMMIT
|
6392
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL[0m
|
6393
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6394
|
+
-----------------------------------------
|
6395
|
+
SimpleRecommenderTest: test_module_exists
|
6396
|
+
-----------------------------------------
|
6397
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6398
|
+
[1m[36mActiveRecord::SchemaMigration Load (26.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6399
|
+
[1m[35mBook Load (2.3ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
6400
|
+
[1m[36m (2.8ms)[0m [1mALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
6401
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6402
|
+
[1m[36mFixture Delete (2.3ms)[0m [1mDELETE FROM "books_tags"[0m
|
6403
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "books"
|
6404
|
+
[1m[36mFixture Insert (22.4ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)[0m
|
6405
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)
|
6406
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)[0m
|
6407
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)
|
6408
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)[0m
|
6409
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)
|
6410
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)[0m
|
6411
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)
|
6412
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)[0m
|
6413
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)
|
6414
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)[0m
|
6415
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)
|
6416
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)[0m
|
6417
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)
|
6418
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)[0m
|
6419
|
+
[1m[35mFixture Insert (2.4ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 266251676)
|
6420
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 644331355)[0m
|
6421
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 508637499)
|
6422
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 168464791)[0m
|
6423
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 572977986)
|
6424
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 857228561)[0m
|
6425
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 436277767)
|
6426
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "likes"[0m
|
6427
|
+
[1m[35mFixture Insert (3.0ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 683130438, 557192574, 266251676)
|
6428
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 834596858, 557192574, 644331355)[0m
|
6429
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 112844655, 944878372, 266251676)
|
6430
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 417155790, 944878372, 508637499)[0m
|
6431
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 802847325, 492947529, 644331355)
|
6432
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 919808993, 492947529, 508637499)[0m
|
6433
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 30677878, 165965450, 168464791)
|
6434
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 292226793, 165965450, 572977986)[0m
|
6435
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 644626036, 3097974, 168464791)
|
6436
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 1063610316, 3097974, 572977986)[0m
|
6437
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 140662621, 3097974, 857228561)
|
6438
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 369541888, 283047497, 168464791)[0m
|
6439
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 553775723, 283047497, 572977986)
|
6440
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:25:20', '2017-02-17 03:25:20', 940090323, 283047497, 436277767)[0m
|
6441
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "tags"
|
6442
|
+
[1m[36mFixture Insert (1.6ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 794233342)[0m
|
6443
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 405042892)
|
6444
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 270779907)[0m
|
6445
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 32674512)
|
6446
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 393102864)[0m
|
6447
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 223486541)
|
6448
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "users"[0m
|
6449
|
+
[1m[35mFixture Insert (1.5ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 557192574)
|
6450
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 944878372)[0m
|
6451
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 492947529)
|
6452
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 165965450)[0m
|
6453
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 3097974)
|
6454
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:25:20', '2017-02-17 03:25:20', 283047497)[0m
|
6455
|
+
[1m[35m (0.4ms)[0m COMMIT
|
6456
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL[0m
|
6457
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6458
|
+
-----------------------------------------
|
6459
|
+
SimpleRecommenderTest: test_module_exists
|
6460
|
+
-----------------------------------------
|
6461
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6462
|
+
[1m[36mActiveRecord::SchemaMigration Load (24.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6463
|
+
[1m[35m (5.4ms)[0m ALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
|
6464
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
6465
|
+
[1m[35mFixture Delete (1.9ms)[0m DELETE FROM "books_tags"
|
6466
|
+
[1m[36mFixture Delete (5.7ms)[0m [1mDELETE FROM "books"[0m
|
6467
|
+
[1m[35mFixture Insert (30.8ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)
|
6468
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)[0m
|
6469
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)
|
6470
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)[0m
|
6471
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)
|
6472
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)[0m
|
6473
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)
|
6474
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)[0m
|
6475
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)
|
6476
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)[0m
|
6477
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)
|
6478
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)[0m
|
6479
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)
|
6480
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)[0m
|
6481
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)
|
6482
|
+
[1m[36mFixture Insert (2.4ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 266251676)[0m
|
6483
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 644331355)
|
6484
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 508637499)[0m
|
6485
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 168464791)
|
6486
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 572977986)[0m
|
6487
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 857228561)
|
6488
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 436277767)[0m
|
6489
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "likes"
|
6490
|
+
[1m[36mFixture Insert (2.9ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 683130438, 557192574, 266251676)[0m
|
6491
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 834596858, 557192574, 644331355)
|
6492
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 112844655, 944878372, 266251676)[0m
|
6493
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 417155790, 944878372, 508637499)
|
6494
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 802847325, 492947529, 644331355)[0m
|
6495
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 919808993, 492947529, 508637499)
|
6496
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 30677878, 165965450, 168464791)[0m
|
6497
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 292226793, 165965450, 572977986)
|
6498
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 644626036, 3097974, 168464791)[0m
|
6499
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 1063610316, 3097974, 572977986)
|
6500
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 140662621, 3097974, 857228561)[0m
|
6501
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 369541888, 283047497, 168464791)
|
6502
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 553775723, 283047497, 572977986)[0m
|
6503
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:22', '2017-02-17 03:28:22', 940090323, 283047497, 436277767)
|
6504
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "tags"[0m
|
6505
|
+
[1m[35mFixture Insert (1.8ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 794233342)
|
6506
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 405042892)[0m
|
6507
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 270779907)
|
6508
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 32674512)[0m
|
6509
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 393102864)
|
6510
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 223486541)[0m
|
6511
|
+
[1m[35mFixture Delete (1.0ms)[0m DELETE FROM "users"
|
6512
|
+
[1m[36mFixture Insert (1.8ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 557192574)[0m
|
6513
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 944878372)
|
6514
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 492947529)[0m
|
6515
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 165965450)
|
6516
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 3097974)[0m
|
6517
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:28:22', '2017-02-17 03:28:22', 283047497)
|
6518
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
6519
|
+
[1m[35m (1.6ms)[0m ALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
|
6520
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6521
|
+
-----------------------------------------
|
6522
|
+
SimpleRecommenderTest: test_module_exists
|
6523
|
+
-----------------------------------------
|
6524
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6525
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Python"]]
|
6526
|
+
[1m[35mBook Load (22.9ms)[0m WITH similar_items AS (
|
6527
|
+
SELECT
|
6528
|
+
t2.book_id,
|
6529
|
+
(# (array_agg(DISTINCT t1.user_id) & array_agg(DISTINCT t2.user_id)))::float/
|
6530
|
+
(# (array_agg(DISTINCT t1.user_id) | array_agg(DISTINCT t2.user_id)))::float as similarity
|
6531
|
+
FROM likes AS t1, likes AS t2
|
6532
|
+
WHERE t1.book_id = 572977986 and t2.book_id != 572977986
|
6533
|
+
GROUP BY t2.book_id
|
6534
|
+
ORDER BY similarity DESC
|
6535
|
+
LIMIT 3
|
6536
|
+
)
|
6537
|
+
SELECT books.*, similarity
|
6538
|
+
FROM similar_items
|
6539
|
+
JOIN books ON books.id = similar_items.book_id
|
6540
|
+
ORDER BY similarity DESC;
|
6541
|
+
|
6542
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Ruby"]]
|
6543
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning C++"]]
|
6544
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Playing Violin"]]
|
6545
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Python"]]
|
6546
|
+
[1m[36mBook Load (0.6ms)[0m [1m WITH similar_items AS (
|
6547
|
+
SELECT
|
6548
|
+
t2.book_id,
|
6549
|
+
(# (array_agg(DISTINCT t1.user_id) & array_agg(DISTINCT t2.user_id)))::float/
|
6550
|
+
(# (array_agg(DISTINCT t1.user_id) | array_agg(DISTINCT t2.user_id)))::float as similarity
|
6551
|
+
FROM likes AS t1, likes AS t2
|
6552
|
+
WHERE t1.book_id = 572977986 and t2.book_id != 572977986
|
6553
|
+
GROUP BY t2.book_id
|
6554
|
+
ORDER BY similarity DESC
|
6555
|
+
LIMIT 3
|
6556
|
+
)
|
6557
|
+
SELECT books.*, similarity
|
6558
|
+
FROM similar_items
|
6559
|
+
JOIN books ON books.id = similar_items.book_id
|
6560
|
+
ORDER BY similarity DESC;
|
6561
|
+
[0m
|
6562
|
+
[1m[36mActiveRecord::SchemaMigration Load (8.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6563
|
+
[1m[35mBook Load (0.3ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Learning Ruby"]]
|
6564
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning C++"]]
|
6565
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1 [["name", "Playing Violin"]]
|
6566
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Python"]]
|
6567
|
+
[1m[35mBook Load (27.9ms)[0m WITH similar_items AS (
|
6568
|
+
SELECT
|
6569
|
+
t2.book_id,
|
6570
|
+
(# (array_agg(DISTINCT t1.user_id) & array_agg(DISTINCT t2.user_id)))::float/
|
6571
|
+
(# (array_agg(DISTINCT t1.user_id) | array_agg(DISTINCT t2.user_id)))::float as similarity
|
6572
|
+
FROM likes AS t1, likes AS t2
|
6573
|
+
WHERE t1.book_id = 572977986 and t2.book_id != 572977986
|
6574
|
+
GROUP BY t2.book_id
|
6575
|
+
ORDER BY similarity DESC
|
6576
|
+
LIMIT 3
|
6577
|
+
)
|
6578
|
+
SELECT books.*, similarity
|
6579
|
+
FROM similar_items
|
6580
|
+
JOIN books ON books.id = similar_items.book_id
|
6581
|
+
ORDER BY similarity DESC;
|
6582
|
+
|
6583
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."name" = $1 LIMIT 1[0m [["name", "Learning Python"]]
|
6584
|
+
[1m[35mBook Load (0.7ms)[0m WITH similar_items AS (
|
6585
|
+
SELECT
|
6586
|
+
t2.book_id,
|
6587
|
+
(# (array_agg(DISTINCT t1.user_id) & array_agg(DISTINCT t2.user_id)))::float/
|
6588
|
+
(# (array_agg(DISTINCT t1.user_id) | array_agg(DISTINCT t2.user_id)))::float as similarity
|
6589
|
+
FROM likes AS t1, likes AS t2
|
6590
|
+
WHERE t1.book_id = 572977986 and t2.book_id != 572977986
|
6591
|
+
GROUP BY t2.book_id
|
6592
|
+
ORDER BY similarity DESC
|
6593
|
+
LIMIT 3
|
6594
|
+
)
|
6595
|
+
SELECT books.*, similarity
|
6596
|
+
FROM similar_items
|
6597
|
+
JOIN books ON books.id = similar_items.book_id
|
6598
|
+
ORDER BY similarity DESC;
|
6599
|
+
|
6600
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "tags" DISABLE TRIGGER ALL;ALTER TABLE "books_tags" DISABLE TRIGGER ALL;ALTER TABLE "books" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "likes" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
6601
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6602
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "books_tags"[0m
|
6603
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "books"
|
6604
|
+
[1m[36mFixture Insert (20.5ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 794233342)[0m
|
6605
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (266251676, 270779907)
|
6606
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 794233342)[0m
|
6607
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (644331355, 270779907)
|
6608
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (508637499, 794233342)[0m
|
6609
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 405042892)
|
6610
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 32674512)[0m
|
6611
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (168464791, 393102864)
|
6612
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 405042892)[0m
|
6613
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 32674512)
|
6614
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (572977986, 393102864)[0m
|
6615
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 405042892)
|
6616
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (857228561, 32674512)[0m
|
6617
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 405042892)
|
6618
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books_tags" ("book_id", "tag_id") VALUES (436277767, 223486541)[0m
|
6619
|
+
[1m[35mFixture Insert (1.0ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Harry Potter', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 266251676)
|
6620
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Lord of the Rings', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 644331355)[0m
|
6621
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Great Expectations', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 508637499)
|
6622
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Ruby', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 168464791)[0m
|
6623
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning Python', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 572977986)
|
6624
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Learning C++', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 857228561)[0m
|
6625
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "books" ("name", "created_at", "updated_at", "id") VALUES ('Playing Violin', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 436277767)
|
6626
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "likes"[0m
|
6627
|
+
[1m[35mFixture Insert (1.2ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 683130438, 557192574, 266251676)
|
6628
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 834596858, 557192574, 644331355)[0m
|
6629
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 112844655, 944878372, 266251676)
|
6630
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 417155790, 944878372, 508637499)[0m
|
6631
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 802847325, 492947529, 644331355)
|
6632
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 919808993, 492947529, 508637499)[0m
|
6633
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 30677878, 165965450, 168464791)
|
6634
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 292226793, 165965450, 572977986)[0m
|
6635
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 644626036, 3097974, 168464791)
|
6636
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 1063610316, 3097974, 572977986)[0m
|
6637
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 140662621, 3097974, 857228561)
|
6638
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 369541888, 283047497, 168464791)[0m
|
6639
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 553775723, 283047497, 572977986)
|
6640
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "likes" ("created_at", "updated_at", "id", "user_id", "book_id") VALUES ('2017-02-17 03:28:42', '2017-02-17 03:28:42', 940090323, 283047497, 436277767)[0m
|
6641
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "tags"
|
6642
|
+
[1m[36mFixture Insert (1.4ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fiction', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 794233342)[0m
|
6643
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Nonfiction', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 405042892)
|
6644
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('Fantasy', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 270779907)[0m
|
6645
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('programming', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 32674512)
|
6646
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('scripting', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 393102864)[0m
|
6647
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("name", "created_at", "updated_at", "id") VALUES ('music', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 223486541)
|
6648
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
6649
|
+
[1m[35mFixture Insert (1.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fred', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 557192574)
|
6650
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fanny', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 944878372)[0m
|
6651
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Fiction Fil', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 492947529)
|
6652
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paulina', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 165965450)[0m
|
6653
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paul', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 3097974)
|
6654
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at", "id") VALUES ('Programmer Paige', '2017-02-17 03:28:42', '2017-02-17 03:28:42', 283047497)[0m
|
6655
|
+
[1m[35m (0.6ms)[0m COMMIT
|
6656
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "tags" ENABLE TRIGGER ALL;ALTER TABLE "books_tags" ENABLE TRIGGER ALL;ALTER TABLE "books" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "likes" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL[0m
|
6657
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6658
|
+
-----------------------------------------
|
6659
|
+
SimpleRecommenderTest: test_module_exists
|
6660
|
+
-----------------------------------------
|
6661
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|