test/dummy/log/test.log in loco-rails-1.0.0 vs test/dummy/log/test.log in loco-rails-1.0.1
- old
+ new
@@ -15592,5 +15592,14369 @@
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
[1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
[1m[35m (0.7ms)[0m DELETE FROM "connections";
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$5lIpPc93n/BHhiyb0vMYaeso1ykdJUB31hznqvsCIwmwnaeNzNabq', '2016-08-09 12:43:08', '2016-08-09 12:43:08', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$Erqe5EaywmCVCj0P/CM9rOT003vHyY3CMCgf.TLkwi1hV2IMAM.l6', '2016-08-09 12:43:08', '2016-08-09 12:43:08', 298486374)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:08.000000', '2016-08-09 12:43:08', '2016-08-09 12:43:08', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:08', '2016-08-09 12:43:08', 298486374, 872278135)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$z9zDsK1GsucL.6OjnVjm8.GESpglw49JyZD75BmNeZBycG8Y/rJ4.', '2016-08-02 12:43:08.000000', '2016-08-09 12:43:08', '2016-08-09 12:43:08', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$bcDbN5vIgF6ASfrbwmIKg.dlt9krw28etAMi5OnIQTmNIuNM1G9o2', '2016-08-09 12:43:08', '2016-08-09 12:43:08', 15595101)[0m
+ [1m[35m (1.2ms)[0m commit transaction
+--------------------------------------------------------------------------
+Admin::EditCommentTest: test_should_init_js_Comment's_object_based_on_form
+--------------------------------------------------------------------------
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:43:09.066043"], ["updated_at", "2016-08-09 12:43:09.066043"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:43:09.078691"], ["updated_at", "2016-08-09 12:43:09.078691"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:43:14 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (1.9ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (9.1ms)
+ Rendered layouts/_flash.html.erb (0.8ms)
+Completed 200 OK in 1134ms (Views: 1117.7ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:15 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:15 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:15 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:15 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.7ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:15.878588') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mAdmin Load (0.3ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:64573/admin
+Completed 302 Found in 10ms (ActiveRecord: 0.3ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 13ms (Views: 10.7ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:16.536458') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:16.538092') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms)
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
+ [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0
+ Rendered admin/users/_user.json.jbuilder (1.1ms)
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/index.json.jbuilder (13.2ms)
+Completed 200 OK in 36ms (Views: 32.3ms | ActiveRecord: 0.8ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:16.703453') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:16.705441') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (2.4ms)
+ Rendered admin/articles/published.json.jbuilder (13.8ms)
+Completed 200 OK in 34ms (Views: 18.7ms | ActiveRecord: 1.5ms)
+Started GET "/admin/articles/980190962/edit" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Processing by Admin::ArticlesController#edit as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/articles/edit.html.erb within layouts/application (39.4ms)
+ Rendered layouts/_flash.html.erb (1.0ms)
+Completed 200 OK in 49ms (Views: 47.8ms | ActiveRecord: 0.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:16.974903') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:16.977010') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.0ms)
+Started GET "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered admin/articles/_article.json.jbuilder (2.5ms)
+ Rendered admin/articles/show.json.jbuilder (15.0ms)
+Completed 200 OK in 39ms (Views: 35.1ms | ActiveRecord: 0.6ms)
+Started GET "/admin/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Processing by Admin::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered admin/comments/_comment.json.jbuilder (0.8ms)
+ Rendered admin/comments/index.json.jbuilder (9.4ms)
+Completed 200 OK in 35ms (Views: 31.3ms | ActiveRecord: 0.7ms)
+Started GET "/admin/articles/980190962/comments/1/edit" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Processing by Admin::CommentsController#edit as HTML
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[35mAdmin Load (0.6ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1 [["article_id", 980190962], ["id", 1]]
+ Rendered admin/comments/edit.html.erb within layouts/application (8.8ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 27ms (Views: 21.8ms | ActiveRecord: 1.1ms)
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (2.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (3.4ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Completed 404 Not Found in 3ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$vJ2tUTFtoWLlN57kCqeDUuNxjf.vNYmIwsDvb70yM0sNOYI15a7LW', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$27JEKw3C6C/hiMrj7P6Yj.h1hED4a4KYfNnMPGQrYb27FnBopgFfG', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:17.000000', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 298486374, 872278135)
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$Yr2it0DbNm8bfYWotDZoyeUPJ5Ok6l3vWQdXihdONMmqZObPAeGr2', '2016-08-02 12:43:17.000000', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$UtrdMNnSOD/3BDyaMYzptuvc.52SKM.2Kv3he2jQdy1kzXtg3Dymu', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+----------------------------------------------------------
+User::ArticleShowPageTest: test_should_auto_update_comment
+----------------------------------------------------------
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$/tT3CJf7XjeXz60hXOP.VehR3z.Cg5lUKioy2IXPaBd/vWQE6HTJy', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$PnR8Qe4PHW.t0aFYuPGLbeWNuiDPzHn2lVzKFdgK4YTEClDipKiZS', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:17.000000', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$eE.p/SvaX6rlai5XHHAwt.2d9Ge1MTNQ.zlMnucMmG.XBAnzy15Tu', '2016-08-02 12:43:17.000000', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$WZJRfFwzT67FwtxkDtnLm.3YrmZJAYZxN2mTDYe7Ga2DBHjJtGBMO', '2016-08-09 12:43:17', '2016-08-09 12:43:17', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+----------------------------------------------------------
+User::ArticleShowPageTest: test_should_auto_update_article
+----------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 12ms (Views: 12.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:17.523004') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (2.2ms)
+ Rendered main/articles/index.json.jbuilder (11.6ms)
+Completed 200 OK in 39ms (Views: 36.1ms | ActiveRecord: 0.9ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (1.0ms)
+ Rendered user/sessions/new.html.erb within layouts/application (3.7ms)
+ Rendered layouts/_flash.html.erb (0.3ms)
+Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:17.685016') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:43:17 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:43:18 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:18 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:18 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:18 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:18 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:18 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:18.149993') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:18.151343') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:18 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.8ms)
+ Rendered user/articles/index.json.jbuilder (9.4ms)
+Completed 200 OK in 25ms (Views: 19.3ms | ActiveRecord: 1.1ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:18 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (1.7ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.1ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:18 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.9ms)
+ Rendered user/articles/show.json.jbuilder (4.2ms)
+Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:18 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:18.321859') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:18.323403') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:43:18 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.6ms)
+Completed 200 OK in 31ms (Views: 24.7ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A18.324284%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:18.324284+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:18.324284') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:18.324284') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A19.324150%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:20 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:19.324150+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:19.324150') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:19.324150') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A20.318724%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:20.318724+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:20.318724') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:20.318724') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A21.331638%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:22 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:21.331638+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:21.331638') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:21.331638') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A22.342394%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:23 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:22.342394+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:22.342394') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:22.342394') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["title", "WiAR"], ["text", "Lorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum II"], ["updated_at", "2016-08-09 12:43:23.433505"], ["id", 298486374]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:43:23.438631"], ["updated_at", "2016-08-09 12:43:23.438631"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A23.326883%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:24 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:23.326883+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:23.326883') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:23.326883') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:24 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.1ms)
+ Rendered user/articles/show.json.jbuilder (1.7ms)
+Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.3ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$RQfdUZOz9a5zdp.8GZlKnuEU904Tk8EBrWULzyowGn/NMvGxWBAGu', '2016-08-09 12:43:24', '2016-08-09 12:43:24', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$rwx6QUytBfyALlFIGur/ReiSheTCH3dok9c9mQx0XteYX4IXamB5i', '2016-08-09 12:43:24', '2016-08-09 12:43:24', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:24.000000', '2016-08-09 12:43:24', '2016-08-09 12:43:24', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:24', '2016-08-09 12:43:24', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$yGc5igu0SsUX6DJogPpvgOUbXmdVfRoHfl.HQegtEcnfNMdi6ueuO', '2016-08-02 12:43:24.000000', '2016-08-09 12:43:24', '2016-08-09 12:43:24', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$hm27t.0KMk6Y1qZBPMeJfeXWN66Ifl3UruEqz8AMAXwZn8cYGQisa', '2016-08-09 12:43:24', '2016-08-09 12:43:24', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+----------------------------------------------------------------------------------------------------
+User::ArticleShowPageTest: test_should_auto_redirect_to_list_of_articles_if_article_has_been_deleted
+----------------------------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:43:24 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:24 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:24 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:24 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:24 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:24 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered main/articles/index.json.jbuilder (9.3ms)
+Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:24 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:24.604068') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:43:24 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.7ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:24 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:24.712207') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.3ms)
+ Rendered user/articles/index.json.jbuilder (6.6ms)
+Completed 200 OK in 13ms (Views: 6.6ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.9ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:25.228999') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:25.231243') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.4ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.2ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (2.3ms)
+ Rendered user/articles/show.json.jbuilder (3.4ms)
+Completed 200 OK in 13ms (Views: 7.0ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.5ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.8ms)
+Completed 200 OK in 9ms (Views: 2.6ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:25 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:25.394929') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:25.396712') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.9ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "articles" WHERE "articles"."id" = ?[0m [["id", 298486374]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "destroyed"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:43:26.354273"], ["updated_at", "2016-08-09 12:43:26.354273"]]
+ [1m[35m (0.9ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A25.397997%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:25.397997+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:25.397997') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:25.397997') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/user/articles?message=deleted" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Processing by User::ArticlesController#index as HTML
+ Parameters: {"message"=>"deleted"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered user/articles/index.json.jbuilder (3.4ms)
+Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:26.543444') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:26.544724') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$sqpJ0uesmJDq4xZJg7GLYec5RSAN3.yoPPBAwXvxhBLksxdR/taKW', '2016-08-09 12:43:26', '2016-08-09 12:43:26', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$gGTt2P50dhp8weGYNaWPieiwczt71Qn5BN4wEpoODvTeMgYe7Cg2O', '2016-08-09 12:43:26', '2016-08-09 12:43:26', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:26.000000', '2016-08-09 12:43:26', '2016-08-09 12:43:26', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:26', '2016-08-09 12:43:26', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$buV3dCxVq6hpyDRJKZMPFOifMa7TZN/Cbx1JWAt/OjReloM.hBfqO', '2016-08-02 12:43:26.000000', '2016-08-09 12:43:26', '2016-08-09 12:43:26', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$UJIPE0IBwroGQigiyZYrW.qPg7IhP7sJzuvqv11ggADKULq8Fcbim', '2016-08-09 12:43:26', '2016-08-09 12:43:26', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+-------------------------------------------------------------
+User::ArticleShowPageTest: test_should_auto_load_new_comments
+-------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:26 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (4.1ms)
+ Rendered main/articles/index.json.jbuilder (8.1ms)
+Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:27.032484') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:27.128743') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered user/articles/index.json.jbuilder (8.0ms)
+Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:27.634432') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:27.636010') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.6ms)
+ Rendered user/articles/show.json.jbuilder (4.8ms)
+Completed 200 OK in 11ms (Views: 5.4ms | ActiveRecord: 0.4ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (0.9ms)
+Completed 200 OK in 7ms (Views: 1.3ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:27.798198') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:27.799406') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A27.800318%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:28 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:27.800318+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:27.800318') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:27.800318') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A28.792164%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:29 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:28.792164+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:28.792164') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:28.792164') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A29.784783%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:30 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:29.784783+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:29.784783') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:29.784783') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A30.786584%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:31 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:30.786584+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:30.786584') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:30.786584') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A31.790349%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:31.790349+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:31.790349') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:31.790349') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 298486374], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:43:32.886774"], ["updated_at", "2016-08-09 12:43:32.886774"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:43:32.890392"], ["updated_at", "2016-08-09 12:43:32.890392"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A32.804343%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:33 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:32.804343+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:32.804343') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:32.804343') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles/298486374/comments/1" for 127.0.0.1 at 2016-08-09 14:43:33 +0200
+Processing by User::CommentsController#show as JSON
+ Parameters: {"article_id"=>"298486374", "id"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36mComment Load (0.1ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 298486374], ["id", 1]]
+ Rendered user/comments/_comment.json.jbuilder (0.7ms)
+ Rendered user/comments/show.json.jbuilder (8.4ms)
+Completed 200 OK in 33ms (Views: 26.8ms | ActiveRecord: 0.5ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.3ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$zWkFpgjvjtdh1mifIHXNcumxaLxvDrvugHc8czO3xiBMGmrvdKfk2', '2016-08-09 12:43:33', '2016-08-09 12:43:33', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$gFBiFacSaHUu4fCn14l7XOylEzezHItcDZR7Ixarnro2vuDnBX4sG', '2016-08-09 12:43:33', '2016-08-09 12:43:33', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:33.000000', '2016-08-09 12:43:33', '2016-08-09 12:43:33', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:33', '2016-08-09 12:43:33', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$IkTxXm.nUWr29cIanMRv4OEV9ly6IIXCavYP1FMKW7UwgnguJlux2', '2016-08-02 12:43:33.000000', '2016-08-09 12:43:33', '2016-08-09 12:43:33', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$c2EvnmG37jKrorRD4PhwqeoR1R.k8UT/yNlBL97vzv49Z7ijYoK9e', '2016-08-09 12:43:33', '2016-08-09 12:43:33', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+------------------------------------------------------
+User::ArticleShowPageTest: test_should_publish_article
+------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:43:33 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (6.6ms)
+Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:34.107219') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.6ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:34.218217') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.0ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered user/articles/index.json.jbuilder (5.9ms)
+Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:34.720280') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:34.721686') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 2.5ms | ActiveRecord: 0.2ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.7ms)
+ Rendered user/articles/show.json.jbuilder (4.8ms)
+Completed 200 OK in 11ms (Views: 5.3ms | ActiveRecord: 0.4ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.7ms)
+Completed 200 OK in 8ms (Views: 2.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:34.881948') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:34.883310') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started PUT "/user/articles/298486374/publish" for 127.0.0.1 at 2016-08-09 14:43:34 +0200
+Processing by User::ArticlesController#publish as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "articles" SET "published_at" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["published_at", "2016-08-09 12:43:34.940829"], ["updated_at", "2016-08-09 12:43:34.941585"], ["id", 298486374]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("obj_class", "obj_id", "event", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["obj_class", "Article"], ["obj_id", 298486374], ["event", "published"], ["data", "{\"id\":298486374}"], ["created_at", "2016-08-09 12:43:34.944837"], ["updated_at", "2016-08-09 12:43:34.944837"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:43:34.948385"], ["updated_at", "2016-08-09 12:43:34.948385"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+Completed 200 OK in 14ms (Views: 0.2ms | ActiveRecord: 4.0ms)
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$dPYn5sDWe14fKdUQyHH.zevjz79UV40zf2lHBgRQsjZ7jsk3qYb3G', '2016-08-09 12:43:35', '2016-08-09 12:43:35', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$tc4zPJ/x0C5ovj5PAjk54.ykAg609MRRNSBl4q7AqD4mtFzp1/D0i', '2016-08-09 12:43:35', '2016-08-09 12:43:35', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:35.000000', '2016-08-09 12:43:35', '2016-08-09 12:43:35', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:35', '2016-08-09 12:43:35', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$pRBdHeuQEgIM2aYzhro8pucc6xeizHEZJ3BDPXe.A4.sioqi0eu3i', '2016-08-02 12:43:35.000000', '2016-08-09 12:43:35', '2016-08-09 12:43:35', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$//q.Z/rYXqAraz5oqgLoh.mY5NG2JhcXP1JRDv/5Ls9xiUMol9Z2u', '2016-08-09 12:43:35', '2016-08-09 12:43:35', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+---------------------------------------------------------------------------
+User::ArticleShowPageTest: test_should_auto_remove_comment_if_was_destroyed
+---------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.8ms)
+ Rendered main/articles/index.json.jbuilder (8.1ms)
+Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:35.199563') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.6ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:35.297072') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.9ms)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.9ms)
+ Rendered user/articles/index.json.jbuilder (7.1ms)
+Completed 200 OK in 13ms (Views: 7.1ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:35.788941') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:35.790590') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (6.1ms)
+ Rendered user/articles/show.json.jbuilder (7.5ms)
+Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 0.4ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by User::CommentsController#index as JSON
+ [1m[35m (0.2ms)[0m begin transaction
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 298486374], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:43:35.941926"], ["updated_at", "2016-08-09 12:43:35.941926"]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (1.4ms)[0m [1mcommit transaction[0m
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:43:35.953389"], ["updated_at", "2016-08-09 12:43:35.953389"]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ Rendered user/comments/_comment.json.jbuilder (1.3ms)
+ Rendered user/comments/index.json.jbuilder (13.6ms)
+Completed 200 OK in 27ms (Views: 14.9ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.7ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:35.976452') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:35.977597') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.5ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "comments" WHERE "comments"."id" = ? [["id", 1]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.8ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:43:36.018907"], ["updated_at", "2016-08-09 12:43:36.018907"]]
+ [1m[35m (0.9ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A35.979306%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:36 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:35.979306+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:35.979306') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:35.979306') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A36.939741%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:37 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:36.939741+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:36.939741') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:36.939741') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A37.934946%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:38 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:37.934946+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:37.934946') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:37.934946') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A38.944936%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:39 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:38.944936+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:38.944936') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:38.944936') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A39.930604%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:40 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:39.930604+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:39.930604') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:39.930604') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A40.941364%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:41 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:40.941364+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:40.941364') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:40.941364') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$Gj0ycm8mbolS/WbWP5gKgeZWtL3mRDaQSX83icjNZPTTi2NnBZrpy', '2016-08-09 12:43:42', '2016-08-09 12:43:42', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$akdcm01h8YOkyO8EHhnK.eYxFQvPPVwMmE7RjhdZmQ4LQSQRL8F0.', '2016-08-09 12:43:42', '2016-08-09 12:43:42', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:42.000000', '2016-08-09 12:43:42', '2016-08-09 12:43:42', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:42', '2016-08-09 12:43:42', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$QLIwSlh0zFvJ0/07p7YfH.0IgDGtLO2uga6YJ54VGTMkuHivvkjBm', '2016-08-02 12:43:42.000000', '2016-08-09 12:43:42', '2016-08-09 12:43:42', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$WTEP/GEyfgI6tken62Dl4ufK2kzEoR.fh8VNjDd3RJroBeCp8maBq', '2016-08-09 12:43:42', '2016-08-09 12:43:42', 15595101)
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+-----------------------------------
+SigningUpTest: test_signing_up_user
+-----------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:43:42 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:42 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:42 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:42 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:42 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:42 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (4.6ms)
+ Rendered main/articles/index.json.jbuilder (7.7ms)
+Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:42.221076') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:42.222538') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/users/new" for 127.0.0.1 at 2016-08-09 14:43:42 +0200
+Processing by Main::UsersController#new as HTML
+ Rendered main/users/new.html.erb within layouts/application (6.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:42.356335') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:42.357474') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started POST "/users" for 127.0.0.1 at 2016-08-09 14:43:42 +0200
+Processing by Main::UsersController#create as JSON
+ Parameters: {"user"=>{"email"=>"joe@example.com", "username"=>"joe", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "confirmed"=>"", "created_at"=>"", "updated_at"=>""}}
+Unpermitted parameters: confirmed, created_at, updated_at
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'joe@example.com' LIMIT 1[0m
+ [1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."username" = 'joe' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "joe@example.com"], ["password_digest", "$2a$04$Yki1vBzDTXMNVCcPcIt9fOohmxZD676q86fZNecb7QLsm4klXnmQO"], ["username", "joe"], ["created_at", "2016-08-09 12:43:42.825903"], ["updated_at", "2016-08-09 12:43:42.825903"]]
+ [1m[35m (1.3ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":872278136}"], ["obj_class", "User"], ["obj_id", 872278136], ["event", "created"], ["recipient_class", "Admin"], ["created_at", "2016-08-09 12:43:42.830488"], ["updated_at", "2016-08-09 12:43:42.830488"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "connections" ("obj_class", "obj_id", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["obj_class", "User"], ["obj_id", 872278136], ["token", "d3119d9699d4f4e2def8"], ["created_at", "2016-08-09 12:43:42.841839"], ["updated_at", "2016-08-09 12:43:42.841839"]]
+ [1m[35m (0.7ms)[0m commit transaction
+Completed 200 OK in 38ms (Views: 0.3ms | ActiveRecord: 4.6ms)
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "joe@example.com"]]
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "joe@example.com"]]
+ [1m[36mConnection Load (0.2ms)[0m [1mSELECT "connections".* FROM "connections" WHERE "connections"."obj_class" = ? AND "connections"."obj_id" = ? ORDER BY "connections"."id" DESC LIMIT 1[0m [["obj_class", "User"], ["obj_id", 872278136]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":872278136}"], ["obj_class", "User"], ["obj_id", 872278136], ["event", "confirming"], ["recipient_token", "d3119d9699d4f4e2def8"], ["created_at", "2016-08-09 12:43:42.980274"], ["updated_at", "2016-08-09 12:43:42.980274"]]
+ [1m[35m (0.7ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A42.358255%2B02%3A00&token=d3119d9699d4f4e2def8" for 127.0.0.1 at 2016-08-09 14:43:43 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:42.358255+02:00", "token"=>"d3119d9699d4f4e2def8"}
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:42.358255') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:42.358255') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:42.358255') AND "loco_notifications"."recipient_token" = ? ORDER BY created_at ASC LIMIT 10 [["recipient_token", "d3119d9699d4f4e2def8"]]
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "joe@example.com"]]
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "joe@example.com"]]
+ [1m[36mConnection Load (0.1ms)[0m [1mSELECT "connections".* FROM "connections" WHERE "connections"."obj_class" = ? AND "connections"."obj_id" = ? ORDER BY "connections"."id" DESC LIMIT 1[0m [["obj_class", "User"], ["obj_id", 872278136]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":872278136}"], ["obj_class", "User"], ["obj_id", 872278136], ["event", "confirmed"], ["recipient_token", "d3119d9699d4f4e2def8"], ["created_at", "2016-08-09 12:43:43.479969"], ["updated_at", "2016-08-09 12:43:43.479969"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A43.364222%2B02%3A00&token=d3119d9699d4f4e2def8" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:43.364222+02:00", "token"=>"d3119d9699d4f4e2def8"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:43.364222') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:43.364222') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:43.364222') AND "loco_notifications"."recipient_token" = ? ORDER BY created_at ASC LIMIT 10 [["recipient_token", "d3119d9699d4f4e2def8"]]
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/user/sessions/new?event=confirmed" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Processing by User::SessionsController#new as HTML
+ Parameters: {"event"=>"confirmed"}
+ Rendered shared/_sign_in_form.html.erb (0.6ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:44.513431') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:44.514552') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$rujJ4/AxjkAKJqZKBl//ZumnkRIlfYBuciFMGm3TwAB1gZ4b7wV1i', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$i.0vxhkFQfvSqjkpEiU4bOEwMYn.KS2lYnPoEjRFR/C8JSUY2/jRu', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:44.000000', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$DYCzoi5jXIOaTC3r9dDRGOrLPvVK9.ug38j.7IIhaVe6hEU9pOFRS', '2016-08-02 12:43:44.000000', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$TJ4l0Gxx0jrDPZdadAdNheenQtEoKLzUWKU/fSVF6N7uF/Dkr6XYO', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+--------------------
+LocoTest: test_truth
+--------------------
+ [1m[35m (0.7ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.3ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$RnB3CTTBNss2MgSK6gJBKOCSHzTM9i4qmpRC2xgcVUYrnoq8Pkwo2', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$9MV.p5Pqs.y9AFtcsMq.ROLHjKnIAwvTL.2tnGGUunbRWgot1RO2O', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:44.000000', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$LyfOwaV8RPQzU2LTnvJCme7nNKUOt9L2hoI1COLpE9QYfkBlfFYee', '2016-08-02 12:43:44.000000', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$PjtjMQNFsEMcifrmuwKgJOOobDtJhQhY/5SiEHy7F8qERKWaXB3QS', '2016-08-09 12:43:44', '2016-08-09 12:43:44', 15595101)[0m
+ [1m[35m (1.1ms)[0m commit transaction
+----------------------------------------------------------
+User::ArticleEditPageTest: test_should_auto_update_comment
+----------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (6.6ms)
+Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:44 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:44.839891') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:44.841386') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:45.127697') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:45.128806') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.3ms)
+ Rendered user/articles/index.json.jbuilder (5.2ms)
+Completed 200 OK in 11ms (Views: 5.2ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:45.613334') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:45.614729') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.8ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"mark\":\"1470746625.728141\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:43:45.728907"], ["updated_at", "2016-08-09 12:43:45.728907"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ Rendered user/articles/_form.html.erb (5.9ms)
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 298486374], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:43:45.750166"], ["updated_at", "2016-08-09 12:43:45.750166"]]
+ Rendered user/articles/edit.html.erb within layouts/application (13.0ms)
+ [1m[35m (0.9ms)[0m commit transaction
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Completed 200 OK in 30ms (Views: 21.4ms | ActiveRecord: 2.0ms)
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:43:45.756714"], ["updated_at", "2016-08-09 12:43:45.756714"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (3.6ms)
+ Rendered user/articles/show.json.jbuilder (4.3ms)
+Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.4ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ Rendered user/comments/_comment.json.jbuilder (0.2ms)
+ Rendered user/comments/index.json.jbuilder (1.6ms)
+Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:45.801398') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:45.802740') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms)
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"mark\":\"1470746625.8412108\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:43:45.842289"], ["updated_at", "2016-08-09 12:43:45.842289"]]
+ [1m[35m (1.4ms)[0m commit transaction
+ Rendered user/articles/_form.html.erb (5.2ms)
+ Rendered user/articles/edit.html.erb within layouts/application (8.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 21ms (Views: 13.2ms | ActiveRecord: 2.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.5ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.7ms)
+ Rendered user/articles/show.json.jbuilder (2.7ms)
+Completed 200 OK in 9ms (Views: 3.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:43:45 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/_comment.json.jbuilder (0.3ms)
+ Rendered user/comments/index.json.jbuilder (2.2ms)
+Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:46 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:46.003886') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:46.006254') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A46.007213%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:46 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:46.007213+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.7ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:46.007213') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:46.007213') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A46.997367%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:47 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:46.997367+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:46.997367') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:46.997367') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A47.994959%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:48 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:47.994959+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:47.994959') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:47.994959') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A48.996565%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:49 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:48.996565+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:48.996565') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:48.996565') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A49.996058%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:51 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:49.996058+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:49.996058') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:49.996058') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mUPDATE "comments" SET "text" = ?, "updated_at" = ? WHERE "comments"."id" = ?[0m [["text", "Some nice thoughts dude (edited)"], ["updated_at", "2016-08-09 12:43:51.328627"], ["id", 1]]
+ [1m[35m (0.7ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "updated"], ["created_at", "2016-08-09 12:43:51.332418"], ["updated_at", "2016-08-09 12:43:51.332418"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A51.047608%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:51 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:51.047608+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:51.047608') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:51.047608') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.7ms)
+Started GET "/user/articles/298486374/comments/1" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Processing by User::CommentsController#show as JSON
+ Parameters: {"article_id"=>"298486374", "id"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 298486374], ["id", 1]]
+ Rendered user/comments/_comment.json.jbuilder (0.4ms)
+ Rendered user/comments/show.json.jbuilder (1.5ms)
+Completed 200 OK in 8ms (Views: 2.5ms | ActiveRecord: 0.6ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (1.4ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.3ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.4ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$jL6ERy5SBumm4MoIvCjoyeQCWEUCiAiUMdIGtk5wx3V1zbNdb15jO', '2016-08-09 12:43:52', '2016-08-09 12:43:52', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$9NE1lGmUsattgL0pZmIaROAHpcXDM2IDUmN1l2fBKcHkUkHz0kpT6', '2016-08-09 12:43:52', '2016-08-09 12:43:52', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:52.000000', '2016-08-09 12:43:52', '2016-08-09 12:43:52', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:52', '2016-08-09 12:43:52', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$yn1JIrnhIF9./mQEuL9mx.Bv8cwrIH4wr4RAx3zqHGqPRGSo0nZ1C', '2016-08-02 12:43:52.000000', '2016-08-09 12:43:52', '2016-08-09 12:43:52', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$5HueMJl4KbRcM9.uvPDypupntOWU6IQuwci/0Y1JJp8bZd2BUtfve', '2016-08-09 12:43:52', '2016-08-09 12:43:52', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+-------------------------------------------------------------
+User::ArticleEditPageTest: test_should_auto_load_new_comments
+-------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered main/articles/index.json.jbuilder (9.4ms)
+Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:52.339280') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.9ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:52.341715') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 1.8ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:52.476485') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:52.478358') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.9ms)
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (3.3ms)
+ Rendered user/articles/index.json.jbuilder (8.3ms)
+Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:52 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:52.977571') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:52.979188') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:43:53 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"mark\":\"1470746633.085008\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:43:53.085833"], ["updated_at", "2016-08-09 12:43:53.085833"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ Rendered user/articles/_form.html.erb (2.3ms)
+ Rendered user/articles/edit.html.erb within layouts/application (2.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 1.5ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:43:53 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.8ms)
+ Rendered user/articles/show.json.jbuilder (2.4ms)
+Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:43:53 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (0.9ms)
+Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:53 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:53.137290') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:53.139062') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A53.140251%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:54 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:53.140251+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:53.140251') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:53.140251') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A54.126264%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:55 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:54.126264+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:54.126264') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:54.126264') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A55.125760%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:56 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:55.125760+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:55.125760') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:55.125760') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A56.127444%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:57 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:56.127444+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:56.127444') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:56.127444') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A57.126630%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:58 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:57.126630+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:57.126630') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:57.126630') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 298486374], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:43:58.241946"], ["updated_at", "2016-08-09 12:43:58.241946"]]
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:43:58.245720"], ["updated_at", "2016-08-09 12:43:58.245720"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A43%3A58.132138%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:43:58.132138+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:58.132138') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:58.132138') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 1.3ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles/298486374/comments/1" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Processing by User::CommentsController#show as JSON
+ Parameters: {"article_id"=>"298486374", "id"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35mComment Load (0.1ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1 [["article_id", 298486374], ["id", 1]]
+ Rendered user/comments/_comment.json.jbuilder (0.3ms)
+ Rendered user/comments/show.json.jbuilder (1.1ms)
+Completed 200 OK in 6ms (Views: 1.9ms | ActiveRecord: 0.3ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "connections";
+ [1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$TvLWhyZsK5TyP5aSBAsFUu2Jwt.55CUcbFSD8mWTuLXiD6DjzFJhu', '2016-08-09 12:43:59', '2016-08-09 12:43:59', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$PpYmSRqmnlJhssbu7u66mOvf9hdl8MuJCSjPfhQprhtVfMBVK0R.y', '2016-08-09 12:43:59', '2016-08-09 12:43:59', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:43:59.000000', '2016-08-09 12:43:59', '2016-08-09 12:43:59', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:43:59', '2016-08-09 12:43:59', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$XcRGTQhBsVhSUSNJjSKXgepMZfXKg4xQbyIHSSbNP1h3Avr.SdDsq', '2016-08-02 12:43:59.000000', '2016-08-09 12:43:59', '2016-08-09 12:43:59', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$oVUVyVCeMQ6lrpdRTH2sKu0IdaprdXKjkKBDvDrfnymrHcpPi67LO', '2016-08-09 12:43:59', '2016-08-09 12:43:59', 15595101)
+ [1m[36m (1.2ms)[0m [1mcommit transaction[0m
+---------------------------------------------------------------------------
+User::ArticleEditPageTest: test_should_auto_remove_comment_if_was_destroyed
+---------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (4.9ms)
+Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:59.389883') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:59.391521') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.7ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.1ms)
+ Rendered layouts/_flash.html.erb (0.4ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:59.501838') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:43:59.503605') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:43:59 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:44:00 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.4ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (4.8ms)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.6ms)
+ Rendered user/articles/index.json.jbuilder (10.9ms)
+Completed 200 OK in 17ms (Views: 11.4ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:00 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:00.152620') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:00.154134') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:44:00 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"mark\":\"1470746640.288147\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:44:00.289125"], ["updated_at", "2016-08-09 12:44:00.289125"]]
+ [1m[35m (1.5ms)[0m commit transaction
+ Rendered user/articles/_form.html.erb (2.5ms)
+ Rendered user/articles/edit.html.erb within layouts/application (3.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 16ms (Views: 7.0ms | ActiveRecord: 2.6ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:44:00 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.6ms)
+ Rendered user/articles/show.json.jbuilder (2.5ms)
+Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.5ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:44:00 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.6ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (2.1ms)
+Completed 200 OK in 12ms (Views: 2.4ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:00 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:00.365403') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:00.367826') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.9ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 298486374], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:44:00.396793"], ["updated_at", "2016-08-09 12:44:00.396793"]]
+ [1m[36m (1.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:44:00.402993"], ["updated_at", "2016-08-09 12:44:00.402993"]]
+ [1m[35m (1.4ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A00.368918%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:01 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:00.368918+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:00.368918') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:00.368918') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles/298486374/comments/1" for 127.0.0.1 at 2016-08-09 14:44:01 +0200
+Processing by User::CommentsController#show as JSON
+ Parameters: {"article_id"=>"298486374", "id"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35mComment Load (0.1ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1 [["article_id", 298486374], ["id", 1]]
+ Rendered user/comments/_comment.json.jbuilder (0.2ms)
+ Rendered user/comments/show.json.jbuilder (0.8ms)
+Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "comments" WHERE "comments"."id" = ? [["id", 1]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:44:01.403707"], ["updated_at", "2016-08-09 12:44:01.403707"]]
+ [1m[35m (0.7ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A01.349270%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:02 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:01.349270+02:00"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:01.349270') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:01.349270') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A02.348138%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:03 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:02.348138+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:02.348138') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:02.348138') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A03.344870%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:04 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:03.344870+02:00"}
+ [1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:03.344870') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:03.344870') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A04.355492%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:05 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:04.355492+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:04.355492') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:04.355492') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A05.344190%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:06 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:05.344190+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:05.344190') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:05.344190') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A06.364363%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:06.364363+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:06.364363') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:06.364363') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.5ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$/WwX3UprOUkqyqs.IiVGAOqqQMD1.fW4efQ8Y/NksIxq1wYTQ0D0i', '2016-08-09 12:44:07', '2016-08-09 12:44:07', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$s08rsmtjXG8IBridmqXwMeMOcfb5fuJWbHOFURu.LIE71Gdo.f5Ta', '2016-08-09 12:44:07', '2016-08-09 12:44:07', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:07.000000', '2016-08-09 12:44:07', '2016-08-09 12:44:07', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:07', '2016-08-09 12:44:07', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$1AGGQ3Uh.lruVCoQaNbCGO1.6p2i.XUKSuhyT7FaI0wy5JsOMjrr2', '2016-08-02 12:44:07.000000', '2016-08-09 12:44:07', '2016-08-09 12:44:07', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$TnZtguFjpJ4XCWfbeXntfuU4tRVIckyHxyRC89KdStsGRGKxoS3oG', '2016-08-09 12:44:07', '2016-08-09 12:44:07', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+--------------------------------------------------------------
+User::ArticleEditPageTest: test_should_show_info_about_editing
+--------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:44:07 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:07 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:07 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:07 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:07 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:44:07 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (2.3ms)
+ Rendered main/articles/index.json.jbuilder (7.8ms)
+Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:07.638682') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:07.640021') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:44:07 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.7ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.1ms)
+ Rendered layouts/_flash.html.erb (0.3ms)
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:07.752068') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:07.753687') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.9ms)
+ Rendered user/articles/index.json.jbuilder (6.3ms)
+Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:08.228051') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:08.229867') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"mark\":\"1470746648.3376389\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:44:08.338504"], ["updated_at", "2016-08-09 12:44:08.338504"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ Rendered user/articles/_form.html.erb (3.4ms)
+ Rendered user/articles/edit.html.erb within layouts/application (4.1ms)
+ Rendered layouts/_flash.html.erb (0.3ms)
+Completed 200 OK in 14ms (Views: 7.3ms | ActiveRecord: 1.5ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.5ms)
+ Rendered user/articles/show.json.jbuilder (2.1ms)
+Completed 200 OK in 16ms (Views: 2.5ms | ActiveRecord: 0.5ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.0ms)
+Completed 200 OK in 6ms (Views: 1.6ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:08 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:08.398707') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:08.399864') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"mark\":\"1470746648.8519711\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:44:08.854115"], ["updated_at", "2016-08-09 12:44:08.854115"]]
+ [1m[35m (0.9ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A08.400920%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:08.400920+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:08.400920') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:08.400920') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[35m (1.2ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$7epQpwWauCwnl/j6LP8pSumRj1ro8BLNxiuLVSPTOTq0jhIt9MCFW', '2016-08-09 12:44:09', '2016-08-09 12:44:09', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$/UDVAv1U4dQfhzul4oBidecrTYgFs8uB7Nv74y.1OIo8V0.3QNBrO', '2016-08-09 12:44:09', '2016-08-09 12:44:09', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:09.000000', '2016-08-09 12:44:09', '2016-08-09 12:44:09', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:09', '2016-08-09 12:44:09', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$iG2nEendfuVx7V.8MW4c1uAncL0ahj0L.RFgJwgXVg.m.QJGQwYs.', '2016-08-02 12:44:09.000000', '2016-08-09 12:44:09', '2016-08-09 12:44:09', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$R0nmkANw2iq8BRhJJmx0HuOdD5us9Fn0PlnSR.XdUgjOCgxZqM/g6', '2016-08-09 12:44:09', '2016-08-09 12:44:09', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+----------------------------------------------------------------------------------------------------
+User::ArticleEditPageTest: test_should_auto_redirect_to_list_of_articles_if_article_has_been_deleted
+----------------------------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:44:09 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:09 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:09 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:09 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:09 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:44:09 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (4.5ms)
+Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:09.903956') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:09.905943') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:44:09 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.7ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:10.004399') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:10.005678') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.3ms)
+ Rendered user/articles/index.json.jbuilder (5.2ms)
+Completed 200 OK in 12ms (Views: 5.3ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:10.491306') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:10.492611') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"mark\":\"1470746650.691062\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:44:10.692310"], ["updated_at", "2016-08-09 12:44:10.692310"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ Rendered user/articles/_form.html.erb (2.7ms)
+ Rendered user/articles/edit.html.erb within layouts/application (3.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 6.2ms | ActiveRecord: 1.5ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.4ms)
+ Rendered user/articles/show.json.jbuilder (2.0ms)
+Completed 200 OK in 8ms (Views: 4.5ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.3ms)
+Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:10 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:10.744348') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:10.745892') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 298486374]]
+ [1m[36m (1.2ms)[0m [1mcommit transaction[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "destroyed"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:44:11.215889"], ["updated_at", "2016-08-09 12:44:11.215889"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A10.747022%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:11 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:10.747022+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:10.747022') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:10.747022') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
+Started GET "/user/articles?message=deleted" for 127.0.0.1 at 2016-08-09 14:44:11 +0200
+Processing by User::ArticlesController#index as HTML
+ Parameters: {"message"=>"deleted"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:11 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:11 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:11 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:11 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:44:11 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered user/articles/index.json.jbuilder (5.8ms)
+Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:11 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:11.887352') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:11.889818') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$1YECinHparrEPw7gdExXXuIkxGmt8NpKmuZ4eKIeVUktyQyUrRmbm', '2016-08-09 12:44:12', '2016-08-09 12:44:12', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$pWBNiR4KqvaihW9xCNhqLOSlhTeVQyo4YBMhBT4iNw1G3KdCM/w4K', '2016-08-09 12:44:12', '2016-08-09 12:44:12', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:12.000000', '2016-08-09 12:44:12', '2016-08-09 12:44:12', 980190962, 872278135)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:12', '2016-08-09 12:44:12', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$1w89gAUFQtCk6FHHH9KSmuVajUC/z6qmRbrvLU8fxADmLEUsZxrbm', '2016-08-02 12:44:12.000000', '2016-08-09 12:44:12', '2016-08-09 12:44:12', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$46cJeTQmhGeOOTguh5F7ceH/rPmN/t1QNXb1ACSVhNHJJ6UK7P7U2', '2016-08-09 12:44:12', '2016-08-09 12:44:12', 15595101)
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+---------------------------------------------------------------------------------------------
+User::ArticleEditPageTest: test_should_allow_to_update_fields_in_order_to_have_updated_values
+---------------------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered main/articles/index.json.jbuilder (6.7ms)
+Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:12.315205') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:12.316404') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.8ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.6ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:12.423342') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:12.424827') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.6ms)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered user/articles/index.json.jbuilder (5.7ms)
+Completed 200 OK in 12ms (Views: 5.7ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:12 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:12.950388') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:12.952130') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:44:13 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"mark\":\"1470746653.068581\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:44:13.069953"], ["updated_at", "2016-08-09 12:44:13.069953"]]
+ [1m[35m (1.5ms)[0m commit transaction
+ Rendered user/articles/_form.html.erb (2.2ms)
+ Rendered user/articles/edit.html.erb within layouts/application (2.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 5.5ms | ActiveRecord: 2.1ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:44:13 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (2.2ms)
+ Rendered user/articles/show.json.jbuilder (6.5ms)
+Completed 200 OK in 13ms (Views: 7.0ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:44:13 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.2ms)
+Completed 200 OK in 7ms (Views: 1.6ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:13 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:13.130803') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:13.132479') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["title", "WiAR"], ["text", "Lorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum II"], ["updated_at", "2016-08-09 12:44:13.666491"], ["id", 298486374]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:44:13.670559"], ["updated_at", "2016-08-09 12:44:13.670559"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A13.133689%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:13.133689+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:13.133689') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:13.133689') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.6ms)
+ Rendered user/articles/show.json.jbuilder (2.3ms)
+Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.5ms)
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$/UxIK6CaG/iDKp1p6UeQ3uuhrszF9l0/.2NJR.Pq01tpKTpj.hmH6', '2016-08-09 12:44:14', '2016-08-09 12:44:14', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$jkq5LeQ7ZtL76B5HGfDiy.wvS2a3xJljz.VJg.JWGDfEaUeC3y4XS', '2016-08-09 12:44:14', '2016-08-09 12:44:14', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:14.000000', '2016-08-09 12:44:14', '2016-08-09 12:44:14', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:14', '2016-08-09 12:44:14', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$euxHct/k5TBA0lfQSEdP2OeJ7uHsZc3J.MKqgdr7LqYJDXl62poEe', '2016-08-02 12:44:14.000000', '2016-08-09 12:44:14', '2016-08-09 12:44:14', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$mpIuTcWHGAzac6Qee84/RelQYxyu3rnGfUD9H/GYaQEkS6uUqwB8e', '2016-08-09 12:44:14', '2016-08-09 12:44:14', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+-----------------------------------------------------
+User::ArticleEditPageTest: test_should_update_article
+-----------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.4ms)
+Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (7.1ms)
+Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:14.531396') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:14.532568') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:14.636990') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:14.638064') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:14 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.4ms)
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered user/articles/index.json.jbuilder (8.6ms)
+Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:15.093986') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:15.095928') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"mark\":\"1470746655.201903\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:44:15.202838"], ["updated_at", "2016-08-09 12:44:15.202838"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ Rendered user/articles/_form.html.erb (2.1ms)
+ Rendered user/articles/edit.html.erb within layouts/application (2.6ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 5.2ms | ActiveRecord: 1.5ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.5ms)
+ Rendered user/articles/show.json.jbuilder (4.4ms)
+Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.4ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.6ms)
+Completed 200 OK in 8ms (Views: 2.4ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:15.255264') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:15.257494') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started PUT "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Processing by User::ArticlesController#update as JSON
+ Parameters: {"article"=>{"title"=>"What is Active Record? (updated)", "text"=>"Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.", "created_at"=>"Tue Aug 09 2016 14:44:14 GMT+0200 (CEST)", "updated_at"=>"Tue Aug 09 2016 14:44:14 GMT+0200 (CEST)", "comments_count"=>"0", "published_at"=>"", "published"=>"false", "admin_review"=>"", "admin_rate"=>"", "category_id"=>"", "admin_review_started_at"=>""}, "id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+Unpermitted parameters: created_at, updated_at, comments_count, published_at, published, admin_review, admin_rate, category_id, admin_review_started_at
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "articles" SET "title" = ?, "updated_at" = ? WHERE "articles"."id" = ?[0m [["title", "What is Active Record? (updated)"], ["updated_at", "2016-08-09 12:44:15.512725"], ["id", 298486374]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:44:15.517916"], ["updated_at", "2016-08-09 12:44:15.517916"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Completed 200 OK in 16ms (Views: 0.2ms | ActiveRecord: 3.4ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (1.3ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$jeW2qZbUZtTcSdttbTp5CegGCM5tZp6EWE2jLjAkIvyd4..KRP2qu', '2016-08-09 12:44:15', '2016-08-09 12:44:15', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$kD/mvfUPnrfhLRKsquPkwecSJylXI1bKU3rxgjopgEj38coQxxcaC', '2016-08-09 12:44:15', '2016-08-09 12:44:15', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:15.000000', '2016-08-09 12:44:15', '2016-08-09 12:44:15', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:15', '2016-08-09 12:44:15', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$M2osMtq3lkgIgyW8ep8nJeATyeAazJKuYnbTItb6A.vuHA9m25DPu', '2016-08-02 12:44:15.000000', '2016-08-09 12:44:15', '2016-08-09 12:44:15', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$JVGK7.hbn7dcJX41CtfsAulQSBv7xlDOshiExC2kNi6FtSeocO5Fi', '2016-08-09 12:44:15', '2016-08-09 12:44:15', 15595101)[0m
+ [1m[35m (0.7ms)[0m commit transaction
+---------------------------------------------------------------------------------
+Admin::ArticlesListTest: test_should_auto_increment_/_decrement_comments_quantity
+---------------------------------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.6ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:15.726085') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:15.727296') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:44:16 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:64573/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:44:16 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:16 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:16 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:16 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:16 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:44:16 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0
+ Rendered admin/users/_user.json.jbuilder (0.4ms)
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/index.json.jbuilder (4.9ms)
+Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:16.181738') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:16.182955') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:16.183823') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:44:16 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:44:16 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered admin/articles/published.json.jbuilder (4.4ms)
+Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:16.302788') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:16.304460') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:16.305604') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:44:16.382063"], ["updated_at", "2016-08-09 12:44:16.382063"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:44:16.385744"], ["updated_at", "2016-08-09 12:44:16.385744"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A16.306684%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:17 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:16.306684+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:16.306684') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:16.306684') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:16.306684') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "comments" WHERE "comments"."id" = ? [["id", 1]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:44:17.485538"], ["updated_at", "2016-08-09 12:44:17.485538"]]
+ [1m[35m (1.0ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A17.339001%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:17.339001+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:17.339001') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:17.339001') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:17.339001') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$F/3cagn.PxbDcrIvMWWX9eZ8rqaq6Y.WDBQeGS/6OC7xAAv4QKgsq', '2016-08-09 12:44:18', '2016-08-09 12:44:18', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$.boWWlBGPYuE2IbjkuLcG.fINLxumgN.Pb0YpOKBZz3ApkrPu4QT2', '2016-08-09 12:44:18', '2016-08-09 12:44:18', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:18.000000', '2016-08-09 12:44:18', '2016-08-09 12:44:18', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:18', '2016-08-09 12:44:18', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$3r0w.RWZSieivJYm8e4qY.6FXmV9fQCqH82TZlNgxn8CQSSN99rKm', '2016-08-02 12:44:18.000000', '2016-08-09 12:44:18', '2016-08-09 12:44:18', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$7v46x3bzNb72E35qp6WRa.LgkHWCQH.rs.Q0G6qZRJd9M/In3gXPC', '2016-08-09 12:44:18', '2016-08-09 12:44:18', 15595101)[0m
+ [1m[35m (1.2ms)[0m commit transaction
+-----------------------------------------------------------
+Admin::ArticlesListTest: test_should_auto_update_an_article
+-----------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.6ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:18.556533') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:18.557892') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:18.558996') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:64573/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:18 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:44:19 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0[0m
+ Rendered admin/users/_user.json.jbuilder (0.6ms)
+ Rendered admin/users/_user.json.jbuilder (0.2ms)
+ Rendered admin/users/index.json.jbuilder (3.2ms)
+Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:19.016703') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:19.018153') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:19.019861') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:44:19 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.2ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:44:19 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (2.1ms)
+ Rendered admin/articles/published.json.jbuilder (5.7ms)
+Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:19.145641') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:19.147588') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:19.149051') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["title", "AGtTRA"], ["text", "TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT..."], ["updated_at", "2016-08-09 12:44:19.323394"], ["id", 980190962]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "updated"], ["created_at", "2016-08-09 12:44:19.326990"], ["updated_at", "2016-08-09 12:44:19.326990"]]
+ [1m[35m (0.9ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A19.150506%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:19.150506+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:19.150506') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:19.150506') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:19.150506') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered admin/articles/_article.json.jbuilder (2.4ms)
+ Rendered admin/articles/show.json.jbuilder (3.4ms)
+Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms)
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$CpKPcgEZsu9V1wqtmvf6m.HoY/NXAcfva84IeDI.j6pcl2iQsVk1C', '2016-08-09 12:44:20', '2016-08-09 12:44:20', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$zb3ckynBX2eIEKXhrpa7VO5mbkkcB/lPHSMrVANAmzo1gk0Hfczi2', '2016-08-09 12:44:20', '2016-08-09 12:44:20', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:20.000000', '2016-08-09 12:44:20', '2016-08-09 12:44:20', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:20', '2016-08-09 12:44:20', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$TJU8OSvqt0BRqS9bd2nZ1uIuKJrUfz.OWPqJYkDKH4.o3wYrdiZGW', '2016-08-02 12:44:20.000000', '2016-08-09 12:44:20', '2016-08-09 12:44:20', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$vNU7QNTVww9zHecy8.qzR.Gv33KJLBnAsYWSPA4bSZQRDnNeFDdyS', '2016-08-09 12:44:20', '2016-08-09 12:44:20', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+-----------------------------------------------------------------------
+Admin::ArticlesListTest: test_should_auto_load_newly_published_articles
+-----------------------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.6ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:20.490569') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:20.491886') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:20.493197') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:64573/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users"
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0[0m
+ Rendered admin/users/_user.json.jbuilder (0.5ms)
+ Rendered admin/users/_user.json.jbuilder (0.4ms)
+ Rendered admin/users/index.json.jbuilder (3.2ms)
+Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:20 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:20.936366') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:20.937639') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:20.938591') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:44:21 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:44:21 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered admin/articles/published.json.jbuilder (8.8ms)
+Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:21.058563') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:21.059934') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:21.061216') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A21.062224%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:21.062224+02:00"}
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:21.062224') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:21.062224') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:21.062224') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A21.062224%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:28 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:21.062224+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:21.062224') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:21.062224') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:21.062224') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "articles" SET "published_at" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["published_at", "2016-08-09 12:44:28.784305"], ["updated_at", "2016-08-09 12:44:28.785461"], ["id", 298486374]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("obj_class", "obj_id", "event", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["obj_class", "Article"], ["obj_id", 298486374], ["event", "published"], ["data", "{\"id\":298486374}"], ["created_at", "2016-08-09 12:44:28.790081"], ["updated_at", "2016-08-09 12:44:28.790081"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A28.010154%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:30 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:28.010154+02:00"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:28.010154') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:28.010154') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:28.010154') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A28.010154%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:30 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:28.010154+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:28.010154') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:28.010154') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:28.010154') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/admin/articles/298486374" for 127.0.0.1 at 2016-08-09 14:44:30 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered admin/articles/_article.json.jbuilder (2.0ms)
+ Rendered admin/articles/show.json.jbuilder (2.8ms)
+Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.6ms)
+Started GET "/admin/articles/298486374" for 127.0.0.1 at 2016-08-09 14:44:30 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered admin/articles/_article.json.jbuilder (1.7ms)
+ Rendered admin/articles/show.json.jbuilder (2.5ms)
+Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 0.8ms)
+ [1m[36m (2.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.4ms)[0m DELETE FROM "comments";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$PVrKP8fa9GB/GFpHgMpBDu/gKWCGO6HDBwy96lRIm25bASsJijQuK', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$MnpD37.IaORY8brgxPBlWuOOYuClMriDjV8lEGsD7cDLsjZKSJst6', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$JWC/KYJ2yrijvS1tryogQ.Sthdo6AwIoua5sbNL.JNJ2jdk3X.a7.', '2016-08-02 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$8c1ZE/X6Cgu132UXZi5e1Oa8DrPLAFMV78PUtMWzC4tsxNvK3xeMK', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+---------------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_should_set_max_size_on_initialization
+---------------------------------------------------------------------------
+ [1m[35m (0.8ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$EqAqTriT75BGCFW/TwNiDeerFtZhLg/H6KJ2GFcH2jvQ4JVxaV4ba', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$94Cqq6yAgKWVOk9ZizdNtOUacvicgGT2wqjsmaEhgWDwY/k5I3Nv2', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$V9YAPwX6LGsa/ZIejAHcm.qTQ1LVP23wW3pSlmF3e4YyMi4y4DWyu', '2016-08-02 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$HJ4nWyJtd4vmnmRZrdNYGuddgr6zneNKIZOjaHD2Q4djyMVLYVOXa', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+---------------------------------------------------------
+Loco::Notification::FetcherTest: test_pemissions_as_class
+---------------------------------------------------------
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "published"], ["recipient_class", "Admin"], ["created_at", "2016-08-09 12:44:30.501508"], ["updated_at", "2016-08-09 12:44:30.501508"]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:27.498682') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:27.498682') AND ((recipient_class = 'Admin' AND recipient_id = 980190962) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:27.499635') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:27.499635') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36m (1.3ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$07tSvmHlbdjgc8A31H1ja.rwj8VDOr6kfUV6Bc22LqvyB/I135/G6', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$5tHP4NVxHUonym4oW/FKfuOcdJlzEchfiZagofWY3hoCm8bC9rDSK', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$42vy0u3gkjVUIe.GB.Tx5eFNMtlxoEjIOCpKNeDOie6w7mKCzauWC', '2016-08-02 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$BsJ/LWdzZXiZ.57N9zM/4.l85AQ.KDB0vMHOSPRO9WO.TI.sjPINe', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+-------------------------------------------------------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_should_not_return_addressed_notifications_without_passing_correct_permissions
+-------------------------------------------------------------------------------------------------------------------
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "published"], ["recipient_class", "Admin"], ["recipient_id", 980190962], ["created_at", "2016-08-09 12:44:30.539779"], ["updated_at", "2016-08-09 12:44:30.539779"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:27.537559') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$lDktXs6SMnFypUnirw.ahuin/m.DOsUsayyRwdV/8nem08vL486ty', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$iA3fUUDNF8YHNBpP4b5MvuYUK0glN8V.WUW9NvTu1k4gMJAFOTQ8y', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$5OqYPIBR6C9jLSabW781keU1.ROpl7L2A8eEL67QvpusFUDj2qch2', '2016-08-02 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$kRnMh02tJE8yp0nstrEOOuRD8ghV/HrIcnV2KK5F.Mhi/ufcCgqDC', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+--------------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_should_set_max_size_via_Loco::Config
+--------------------------------------------------------------------------
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$2UsGVFXRuh4I.K45RSIvV.SzTG3pQpciNcjX1TYGdNFb3qRzqFtve', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$PZF8Qj9PZ75D7YqHYEtdbe.qdOwUSuq2fLfi6iqdIih8LwCZ5JrUe', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$pjC6e/myB9ufjZhso4vFjOUtqw/N6a2jEHdGL3B6giVsOdQrOj9Ye', '2016-08-02 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$EJCzWEhVuGDfFJe3Zgi/Uu5NkXMNcuw7cdP9E6WFdo0/T6BAUBOBa', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+-----------------------------------------------------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_should_not_return_addressed_notifications_when_passed_incorrect_permissions
+-----------------------------------------------------------------------------------------------------------------
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "published"], ["recipient_class", "Admin"], ["recipient_id", 298486374], ["created_at", "2016-08-09 12:44:30.602122"], ["updated_at", "2016-08-09 12:44:30.602122"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:27.599366') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:27.599366') AND ((recipient_class = 'Admin' AND recipient_id = 980190962) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$48q10uAcXgcHZerXtVyLOOPLiodIPSgbAcVtBhg4M6wI7.NIyjgWq', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$LZO4truJ2rgZ4i9Wj3ftAuhIZsI6UELZKBR/U4kG8JozETm10aBHa', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$KOgIjqRrVvD2AYFL7NJoguIDTDry5B7WufLshzhOaaL5QYx7W6QO2', '2016-08-02 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$XXfumTbm4MVxSii0wbw3muPsvB/PT/pey4p56zRL7GthTfc5rz1Yy', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+-------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_fetching_with_recipient_token
+-------------------------------------------------------------------
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "published"], ["recipient_token", "123qweasd"], ["created_at", "2016-08-09 12:44:30.634863"], ["updated_at", "2016-08-09 12:44:30.634863"]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:27.633258') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:27.633258') AND "loco_notifications"."recipient_token" = ? ORDER BY created_at ASC LIMIT 1000 [["recipient_token", "123qweasd"]]
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (1.4ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$5ARW9w4QAs8Hb.jELihpzu1kXqOCmR8CWijrRaKY.ggBK9hyqz9uu', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$lLC9Xg5k1U8bwZjXGc8Nx.3Nn3WLGfEHPmlVwSvoDhJC1ZsqdUbhO', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$mYpS7fgZzzW3TlqK/wRWnOLKLurr4/QW8b0QOahZzi09Amado6EhS', '2016-08-02 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$Kumtcpr70AuIiK2NgFwjHO2lI.JrXRQvxR25X8kKc8URz5JgZkhXm', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+-----------------------------------------------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_should_return_addressed_notifications_when_passed_correct_permissions
+-----------------------------------------------------------------------------------------------------------
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "published"], ["recipient_class", "Admin"], ["recipient_id", 980190962], ["created_at", "2016-08-09 12:44:30.670544"], ["updated_at", "2016-08-09 12:44:30.670544"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:27.668228') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:27.668228') AND ((recipient_class = 'Admin' AND recipient_id = 980190962) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$Oq/SgPDDxxhWD3JoNzHBaubwUveKiDvTbt9J863ik44eafG12bCjm', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$IUf2oQTBXyZM1qQbPceOwOJqFwAEgKe8sekGO4CP3s2VsltFMvFSS', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$5bx1RS47aQuV3CK1Zo7gq.U2JeLlB/N.Vuu6rFap.vpvsysEZs4NC', '2016-08-02 12:44:30.000000', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$BE1S4/k.gL8vv2uxnSNOFO7DRaD2pqN3Z5faLx7xInkh5gCHCEZ4O', '2016-08-09 12:44:30', '2016-08-09 12:44:30', 15595101)
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+----------------------------------------
+Admin::UsersSectionTest: test_signing_in
+----------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:44:38 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.6ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (1.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A30.166309%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:38 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:30.166309+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:30.166309') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:30.166309') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:30.166309') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A30.166309%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:44:38 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:30.166309+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:30.166309') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:30.166309') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:30.166309') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:39 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:39 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:39 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:39 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:39 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:39.508404') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:39.509803') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:39.510781') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:44:41 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:64573/admin
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:44:41 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[36mAdmin Load (0.3ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:41 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:41 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:41 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:41 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:44:42 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0
+ Rendered admin/users/_user.json.jbuilder (0.4ms)
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/index.json.jbuilder (5.0ms)
+Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:42.137736') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:42.138847') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:42.139735') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[35m (2.9ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$6XZ6alWjREvgaqqqEIi.nuI40EMXkqafqV6IYj2n/0a.pEmtQLSm6', '2016-08-09 12:44:42', '2016-08-09 12:44:42', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$iAopZJYttJDDcrSaTT3CYekRP4BbXQq47fdfyOK3bXevLB7TRU/yC', '2016-08-09 12:44:42', '2016-08-09 12:44:42', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:44:42.000000', '2016-08-09 12:44:42', '2016-08-09 12:44:42', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:44:42', '2016-08-09 12:44:42', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$ele8Lye9hTEVaRVCK0wocOOs3s84U.dTA53hyxMbbCPMDJG8S8S2.', '2016-08-02 12:44:42.000000', '2016-08-09 12:44:42', '2016-08-09 12:44:42', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$yyYL3u7BK9zgDkqVtK/ZKeSDQ/ZIFZOl4V0C4qneu9NIivfCRTdQq', '2016-08-09 12:44:42', '2016-08-09 12:44:42', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+---------------------------------------------
+Admin::UsersSectionTest: test_confirming_user
+---------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:44:42 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.4ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:42 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:42 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:42 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:42 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:42.970771') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:42.972238') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:42.973272') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:44:55 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:64573/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:44:55 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:44:56 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:44:56 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:44:56 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:44:56 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:44:56 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users"
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0[0m
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/_user.json.jbuilder (0.5ms)
+ Rendered admin/users/index.json.jbuilder (5.2ms)
+Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:44:56 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:56.323460') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:56.324500') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:56.325385') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 15595101]]
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A56.326162%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:45:03 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:56.326162+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:56.326162') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:56.326162') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:56.326162') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A44%3A56.326162%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:45:03 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:44:56.326162+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:56.326162') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:56.326162') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:44:56.326162') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/admin/users/15595101/edit" for 127.0.0.1 at 2016-08-09 14:45:04 +0200
+Processing by Admin::UsersController#edit as HTML
+ Parameters: {"id"=>"15595101"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 15595101]]
+ [1m[35mConnection Load (0.3ms)[0m SELECT "connections".* FROM "connections" WHERE "connections"."obj_class" = ? AND "connections"."obj_id" = ? ORDER BY "connections"."id" DESC LIMIT 1 [["obj_class", "User"], ["obj_id", 15595101]]
+ Rendered admin/users/_form.html.erb (4.4ms)
+ Rendered admin/users/edit.html.erb within layouts/application (9.6ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 19ms (Views: 16.1ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:45:04 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:04.571130') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:04.572236') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:04.573399') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started PUT "/admin/users/15595101" for 127.0.0.1 at 2016-08-09 14:45:06 +0200
+Processing by Admin::UsersController#update as JSON
+ Parameters: {"user"=>{"email"=>"jane@example.com", "username"=>"jane", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "confirmed"=>"1", "created_at"=>"", "updated_at"=>""}, "id"=>"15595101"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 15595101]]
+Unpermitted parameters: created_at, updated_at
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE ("users"."email" = 'jane@example.com' AND "users"."id" != 15595101) LIMIT 1[0m
+ [1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE ("users"."username" = 'jane' AND "users"."id" != 15595101) LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["confirmed_at", "2016-08-09 12:45:06.128826"], ["updated_at", "2016-08-09 12:45:06.131658"], ["id", 15595101]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36mConnection Load (0.1ms)[0m [1mSELECT "connections".* FROM "connections" WHERE "connections"."obj_class" = ? AND "connections"."obj_id" = ? ORDER BY "connections"."id" DESC LIMIT 1[0m [["obj_class", "User"], ["obj_id", 15595101]]
+Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 2.0ms)
+Started GET "/admin/users" for 127.0.0.1 at 2016-08-09 14:45:06 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.2ms)
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:45:06 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users"
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0[0m
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/_user.json.jbuilder (0.6ms)
+ Rendered admin/users/index.json.jbuilder (5.6ms)
+Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:45:06 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:06.357456') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:06.359009') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:06.360135') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[36m (1.6ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$3YFz0hoYQvPZ1PCfD5fky.rgCqpwbPxRI0qZb7nR7RwBMgI2RYRpG', '2016-08-09 12:45:06', '2016-08-09 12:45:06', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$ij2hHjidaE1cu63gfsb0W.U5wOiIb7lolqDlG2iT7IC67y2OvYLti', '2016-08-09 12:45:06', '2016-08-09 12:45:06', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:45:06.000000', '2016-08-09 12:45:06', '2016-08-09 12:45:06', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:45:06', '2016-08-09 12:45:06', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$7DLlkG/FM.25cU94zhCXfO3bnMPzo6VJdsDTXK7bOEdyiN4wNrI6m', '2016-08-02 12:45:06.000000', '2016-08-09 12:45:06', '2016-08-09 12:45:06', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$Wa2pd7AYk55LGs7/KU8foOhkkks03vImRIfhsdl9VA5Zk52QJbCdC', '2016-08-09 12:45:06', '2016-08-09 12:45:06', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+------------------------------------------------------------------
+Admin::UsersSectionTest: test_should_auto_load_recently_added_user
+------------------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:45:06 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.7ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (1.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:45:06 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:45:07 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:45:07 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:45:07 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:45:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:07.194650') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:07.195858') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:07.196696') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:45:19 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:64573/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:45:19 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:45:19 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:45:19 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:45:19 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:45:19 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:45:20 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/_user.json.jbuilder (0.2ms)
+ Rendered admin/users/index.json.jbuilder (4.4ms)
+Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:45:20 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:20.042296') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:20.043586') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:20.044694') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'david@example.com' LIMIT 1[0m
+ [1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."username" = 'david' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "username", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "david@example.com"], ["username", "david"], ["password_digest", "$2a$04$vtpr.90s6wPbiUaSy0nYHOoomQSeocyMcQAO2C9QTjpIfQjMxXGVa"], ["created_at", "2016-08-09 12:45:20.092724"], ["updated_at", "2016-08-09 12:45:20.092724"]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":872278136}"], ["obj_class", "User"], ["obj_id", 872278136], ["event", "created"], ["recipient_class", "Admin"], ["created_at", "2016-08-09 12:45:20.096314"], ["updated_at", "2016-08-09 12:45:20.096314"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A45%3A20.045607%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:45:28 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:45:20.045607+02:00"}
+ [1m[35mUser Load (685.7ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.7ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:20.045607') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:20.045607') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:20.045607') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 696ms (Views: 0.3ms | ActiveRecord: 687.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A45%3A20.045607%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:45:28 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:45:20.045607+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:20.045607') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:20.045607') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:20.045607') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 1.5ms)
+Started GET "/admin/users/872278136" for 127.0.0.1 at 2016-08-09 14:45:28 +0200
+Processing by Admin::UsersController#show as JSON
+ Parameters: {"id"=>"872278136"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278136]]
+ Rendered admin/users/_user.json.jbuilder (0.9ms)
+ Rendered admin/users/show.json.jbuilder (3.9ms)
+Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.3ms)
+Started GET "/admin/users/872278136" for 127.0.0.1 at 2016-08-09 14:45:28 +0200
+Processing by Admin::UsersController#show as JSON
+ Parameters: {"id"=>"872278136"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278136]]
+ Rendered admin/users/_user.json.jbuilder (0.5ms)
+ Rendered admin/users/show.json.jbuilder (1.2ms)
+Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A45%3A28.840190%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:45:29 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:45:28.840190+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:28.840190') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:28.840190') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:28.840190') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$siAb/hy9L9cWhFUtG.f1veZHCaNw8PrgG3TDLmcrPDZcuxQJHohU2', '2016-08-09 12:45:29', '2016-08-09 12:45:29', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$qKSo2c9M/dJRQ1s5oIjv8.aGMxsz/cgzUWgJT54W0HnYafs/81EWu', '2016-08-09 12:45:29', '2016-08-09 12:45:29', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:45:29.000000', '2016-08-09 12:45:29', '2016-08-09 12:45:29', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:45:29', '2016-08-09 12:45:29', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$.JwvbmEQYxkXN/INymqcJOEhnwoIfQFy3/gFML9vie3L1hKt6qHOW', '2016-08-02 12:45:29.000000', '2016-08-09 12:45:29', '2016-08-09 12:45:29', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$i58Q3ACRX684qcxaklfuYuGYOlusmoxSRl1BHc.qEPg5oLfDgHYZq', '2016-08-09 12:45:29', '2016-08-09 12:45:29', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+-----------------------------------------------------------------------------
+DisconnectionTest: test_should_show_alert_about_disconnection_from_the_server
+-----------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:45:29 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:45:29 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:45:29 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:45:29 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:45:29 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:45:29 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (4.3ms)
+Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:45:29 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:29.503107') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:29.504379') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:29.505428') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[36m (1.3ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$AXvmP0KR9F2fCQkx.rRO3uQZjVn5VWexjpbULom.so19pe2RSmt6G', '2016-08-09 12:45:40', '2016-08-09 12:45:40', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$kOdxoklBt2BrbA2v9.JXGuD3OwEptrEr85mgOGO2pTaKpOFrwykE.', '2016-08-09 12:45:40', '2016-08-09 12:45:40', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:45:40.000000', '2016-08-09 12:45:40', '2016-08-09 12:45:40', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:45:40', '2016-08-09 12:45:40', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$RCZe8kh7JWRjQEanfpFBXONNZfHRObyZniShprgkJ4/Lh.Zc31u0W', '2016-08-02 12:45:40.000000', '2016-08-09 12:45:40', '2016-08-09 12:45:40', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$l6trc7xKkDbpupyT4CJnCuhFgLsSgr4LJhHaVTsxPc0glkgUAD/7q', '2016-08-09 12:45:40', '2016-08-09 12:45:40', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+---------------------------------------------------
+Main::MainPageTest: test_should_async_load_articles
+---------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:45:40 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:45:40 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:45:40 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:45:40 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:45:40 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:45:40 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered main/articles/index.json.jbuilder (4.7ms)
+Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:45:40 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:40.932803') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:40.933916') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.6ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:40.935357') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.4ms)
+ [1m[36m (1.3ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (1.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$eSF5Mmdvw7RaawjplsbHL.0/ah3aa3SDkKKmzRFQ.5hDkNkQYz3ge', '2016-08-09 12:45:41', '2016-08-09 12:45:41', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$NrpzNsXEP0Fb24fXZ9EZQ.bbVPFhVQE0upCsJ3dDOYhnyLLDM0oc.', '2016-08-09 12:45:41', '2016-08-09 12:45:41', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:45:41.000000', '2016-08-09 12:45:41', '2016-08-09 12:45:41', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:45:41', '2016-08-09 12:45:41', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$gNlvhDIp0jajX7oYdjRCXubnpDOhAD5B3.9GBDQ4p9.htKkoHWYWO', '2016-08-02 12:45:41.000000', '2016-08-09 12:45:41', '2016-08-09 12:45:41', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$Sb0DN5hKgyqovEiYBmku0uqlXyrQtWhbDEINYuoMuT7OVCbmrP1NO', '2016-08-09 12:45:41', '2016-08-09 12:45:41', 15595101)
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+----------------------------------------------------------------------------
+Main::MainPageTest: test_should_update_number_of_comments_if_one_was_deleted
+----------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:45:41 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.6ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:45:41 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:45:41 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:45:41 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:45:41 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:45:42 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered main/articles/index.json.jbuilder (6.9ms)
+Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:45:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:42.072042') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:42.073607') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:42.074659') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:45:42.110416"], ["updated_at", "2016-08-09 12:45:42.110416"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:45:42.114094"], ["updated_at", "2016-08-09 12:45:42.114094"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Jason"], ["text", "Very interesting..."], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:45:42.118582"], ["updated_at", "2016-08-09 12:45:42.118582"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":2}"], ["obj_class", "Comment"], ["obj_id", 2], ["event", "created"], ["created_at", "2016-08-09 12:45:42.123082"], ["updated_at", "2016-08-09 12:45:42.123082"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:45:42 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.7ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:45:42 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:45:42 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:45:42 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:45:42 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:45:42 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered main/articles/index.json.jbuilder (5.0ms)
+Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:45:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:42.390604') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:42.391758') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:42.392726') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "comments" WHERE "comments"."id" = ? [["id", 1]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:45:42.531574"], ["updated_at", "2016-08-09 12:45:42.531574"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "comments" WHERE "comments"."id" = ? [["id", 2]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":2}"], ["obj_class", "Comment"], ["obj_id", 2], ["event", "destroyed"], ["created_at", "2016-08-09 12:45:42.536526"], ["updated_at", "2016-08-09 12:45:42.536526"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A45%3A42.393517%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:45:43 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:45:42.393517+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:42.393517') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:42.393517') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:42.393517') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 1.5ms)
+ [1m[35m (1.6ms)[0m DELETE FROM "articles";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.4ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.3ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$UvXLb8utWoTVoVqYuYJYD.iklZbd119501Cjkb5WFzyG7PGY9lIZq', '2016-08-09 12:45:43', '2016-08-09 12:45:43', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$ZGkdI4tdT2QAUCxOdsB5bOxGqyixZbq9mECgBJgcs9V4rw5OekO4m', '2016-08-09 12:45:43', '2016-08-09 12:45:43', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:45:43.000000', '2016-08-09 12:45:43', '2016-08-09 12:45:43', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:45:43', '2016-08-09 12:45:43', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$T1tB5GPHb.W4EJTXDkHEf.U8B09DTGy3eh5XHbKyugAeomysWyV1u', '2016-08-02 12:45:43.000000', '2016-08-09 12:45:43', '2016-08-09 12:45:43', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$r42tIxehBe8qn6zvM2R1QuZkeDNxFeiAGurPJHY5Caeo49sgf3dn6', '2016-08-09 12:45:43', '2016-08-09 12:45:43', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+-----------------------------------------------------------
+Main::MainPageTest: test_should_auto_load_published_article
+-----------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:45:54 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A45%3A43.855402%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:45:54 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:45:43.855402+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:43.855402') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:43.855402') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:43.855402') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A45%3A43.855402%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:45:54 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:45:43.855402+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:43.855402') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:43.855402') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:43.855402') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:45:54 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:45:54 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:45:54 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:45:54 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:45:54 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (6.8ms)
+Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:45:54 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:54.767843') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:54.769109') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:54.769910') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "articles" SET "published_at" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["published_at", "2016-08-09 12:45:54.836250"], ["updated_at", "2016-08-09 12:45:54.837093"], ["id", 298486374]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "loco_notifications" ("obj_class", "obj_id", "event", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["obj_class", "Article"], ["obj_id", 298486374], ["event", "published"], ["data", "{\"id\":298486374}"], ["created_at", "2016-08-09 12:45:54.840869"], ["updated_at", "2016-08-09 12:45:54.840869"]]
+ [1m[35m (1.1ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A45%3A54.770598%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:46:04 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:45:54.770598+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:54.770598') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:54.770598') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:54.770598') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.4ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A45%3A54.770598%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:46:04 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:45:54.770598+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:54.770598') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:54.770598') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:45:54.770598') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 1.1ms)
+Started GET "/articles/298486374?abbr=true" for 127.0.0.1 at 2016-08-09 14:46:04 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"298486374"}
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered main/articles/_article_for_list.json.jbuilder (2.2ms)
+ Rendered main/articles/show.json.jbuilder (4.6ms)
+Completed 200 OK in 693ms (Views: 690.2ms | ActiveRecord: 0.5ms)
+Started GET "/articles/298486374?abbr=true" for 127.0.0.1 at 2016-08-09 14:46:05 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"298486374"}
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered main/articles/show.json.jbuilder (1.8ms)
+Completed 200 OK in 6ms (Views: 2.1ms | ActiveRecord: 0.5ms)
+ [1m[36m (1.5ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (1.6ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$Fir0InphqVrs5.XCSBoeCu/Q2S9J6vhnkh87hiMdssboaHG.dxFoO', '2016-08-09 12:46:05', '2016-08-09 12:46:05', 980190962)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$RMLwkedpEnpsSiJcxF7dfeMCQcu0mp71FJGjZGSlcA3mthPKbOMVm', '2016-08-09 12:46:05', '2016-08-09 12:46:05', 298486374)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:46:05.000000', '2016-08-09 12:46:05', '2016-08-09 12:46:05', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:46:05', '2016-08-09 12:46:05', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$v7W4pmO0Ml4/JpvcCJzrouamj/tE50/sY9oCaeT9RQZOtjKbK5boi', '2016-08-02 12:46:05.000000', '2016-08-09 12:46:05', '2016-08-09 12:46:05', 872278135)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$dzakcmLbCCORYlAIebKbROjWPZxW.WmS.i3qT84Rym39Us88cxC5u', '2016-08-09 12:46:05', '2016-08-09 12:46:05', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+------------------------------------------------------------------------
+Main::MainPageTest: test_should_update_title_of_recently_updated_article
+------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:46:05 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:46:05 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:46:05 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:46:05 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:46:05 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:46:06 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.4ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (4.7ms)
+Completed 200 OK in 11ms (Views: 4.7ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:46:06 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:06.061911') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:06.063098') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:06.064031') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.0ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "articles" SET "title" = ?, "updated_at" = ? WHERE "articles"."id" = ?[0m [["title", "AGtTRA"], ["updated_at", "2016-08-09 12:46:06.097381"], ["id", 980190962]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "updated"], ["created_at", "2016-08-09 12:46:06.100633"], ["updated_at", "2016-08-09 12:46:06.100633"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A46%3A06.065019%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:46:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:46:06.065019+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:06.065019') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:06.065019') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:06.065019') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/articles/980190962?abbr=true" for 127.0.0.1 at 2016-08-09 14:46:07 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"980190962"}
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.8ms)
+ Rendered main/articles/show.json.jbuilder (2.3ms)
+Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.6ms)
+ [1m[35m (1.5ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$SY6NKoOIoBMNuo0hCLzQgO0z1bZtilQgwp.ZLpTf.M6x9pSSF.ZuS', '2016-08-09 12:46:07', '2016-08-09 12:46:07', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$Ty2XGDURB8Qmn4shtlRnbuOobzJQVVQHtp3UZ/xC.uurZIKqSJBKW', '2016-08-09 12:46:07', '2016-08-09 12:46:07', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:46:07.000000', '2016-08-09 12:46:07', '2016-08-09 12:46:07', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:46:07', '2016-08-09 12:46:07', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$DbjR5CHp59o5y.vVkqhmlOR28Ag0z.TDKaS1eLmmmEfAFJmh6fvgG', '2016-08-02 12:46:07.000000', '2016-08-09 12:46:07', '2016-08-09 12:46:07', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$WL7.pDgfQKJ1Kl797oixDumGtRuFhaapVGjUnN81EVDqgBgsMfh6G', '2016-08-09 12:46:07', '2016-08-09 12:46:07', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+--------------------------------------------------------------------------
+Main::MainPageTest: test_should_update_number_of_comments_if_one_was_added
+--------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:46:07 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.3ms)
+Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:46:07 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:46:07 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:46:07 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:46:07 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:46:07 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (4.1ms)
+ Rendered main/articles/index.json.jbuilder (8.0ms)
+Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:46:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:07.716968') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:07.718255') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:07.719423') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:46:07.761084"], ["updated_at", "2016-08-09 12:46:07.761084"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:46:07.764828"], ["updated_at", "2016-08-09 12:46:07.764828"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A46%3A07.720383%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:46:08 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:46:07.720383+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:07.720383') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:07.720383') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:07.720383') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[35m (1.4ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.5ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$t.9fbxIC4L..jPe.bRauwuFvB8i5dH4SCpqi/PWf3GX8IUYCXcAHK', '2016-08-09 12:46:08', '2016-08-09 12:46:08', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$mkWs5TOYs14SD.W.Z98IKeok.5lSB9KYlIqo0lLK.O6qv1/FIoSse', '2016-08-09 12:46:08', '2016-08-09 12:46:08', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:46:08.000000', '2016-08-09 12:46:08', '2016-08-09 12:46:08', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:46:08', '2016-08-09 12:46:08', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$DZrPWN/6QZCQc/FT02MJAu2MXmAbtsDR/z6.il1YlDvIKQJZf7WI.', '2016-08-02 12:46:08.000000', '2016-08-09 12:46:08', '2016-08-09 12:46:08', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$injKfKOybd4ZC5dFTOuV9OoD18R/Ax/.OnyZpkAGIDd9Glx0LVXli', '2016-08-09 12:46:08', '2016-08-09 12:46:08', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+----------------------------------------------------------------------
+Main::MainPageTest: test_should_load_another_page_of_articles_on_click
+----------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:46:08 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:46:08 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:46:08 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:46:08 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:46:08 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:46:09 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.8ms)
+ Rendered main/articles/index.json.jbuilder (7.2ms)
+Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:46:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:09.146945') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:09.148144') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:09.149392') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.2ms)
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Why Associations?"], ["text", "Why do we need associations between models? Because they make common operations simpler and easier in your code. For example, consider a simple Rails application that includes a model for customers and a model for orders."], ["published_at", "2016-08-07 12:46:09.176652"], ["user_id", 872278135], ["created_at", "2016-08-09 12:46:09.178627"], ["updated_at", "2016-08-09 12:46:09.178627"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 15595101]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Form Helpers"], ["text", "Forms in web applications are an essential interface for user input. However, form markup can quickly become tedious to write and maintain because of the need to handle form control naming and its numerous attributes."], ["published_at", "2016-08-06 12:46:09.182661"], ["user_id", 15595101], ["created_at", "2016-08-09 12:46:09.183937"], ["updated_at", "2016-08-09 12:46:09.183937"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["title", "Active Support Core Extensions"], ["text", "Active Support is the Ruby on Rails component responsible for providing Ruby language extensions, utilities, and other transversal stuff."], ["published_at", "2016-08-05 12:46:09.187100"], ["user_id", 15595101], ["created_at", "2016-08-09 12:46:09.188794"], ["updated_at", "2016-08-09 12:46:09.188794"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Configuring Rails Components"], ["text", "In general, the work of configuring Rails means configuring the components of Rails, as well as configuring Rails itself. The configuration file config/application.rb and environment-specific configuration files (such as config/environments/production.rb) allow you to specify the various settings that you want to pass down to all of the components."], ["published_at", "2016-08-04 12:46:09.191653"], ["user_id", 872278135], ["created_at", "2016-08-09 12:46:09.192964"], ["updated_at", "2016-08-09 12:46:09.192964"]]
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:46:09 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:46:09 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:46:09 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:46:09 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:46:09 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:46:09 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135, 15595101)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190963]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.2ms)
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190964]]
+ Rendered main/articles/_article_for_list.json.jbuilder (4.2ms)
+ Rendered main/articles/index.json.jbuilder (11.7ms)
+Completed 200 OK in 15ms (Views: 11.4ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:46:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:09.475678') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (1.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:09.477319') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:09.479634') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 2.2ms)
+Started GET "/articles?page=2" for 127.0.0.1 at 2016-08-09 14:46:09 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"2"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 3[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (15595101, 872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190965]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190966]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered main/articles/index.json.jbuilder (6.4ms)
+Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 1.1ms)
+ [1m[36m (2.3ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$EkQ3UXXE1xk02CoAuyT9DOPgbDZphHL9LYVsCBmerRM1l0s8NVEgm', '2016-08-09 12:46:10', '2016-08-09 12:46:10', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$kugrYZIy91.cE0EbaDhEqeNG8bscgYA6Vfls9Fh/Wl/qaisYHJG3W', '2016-08-09 12:46:10', '2016-08-09 12:46:10', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:46:10.000000', '2016-08-09 12:46:10', '2016-08-09 12:46:10', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:46:10', '2016-08-09 12:46:10', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$DhM13tkIjqmtS7FziVTliOQN7CGI/KM1UfT5j4bq58bGbQSiL9xdK', '2016-08-02 12:46:10.000000', '2016-08-09 12:46:10', '2016-08-09 12:46:10', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$0gLQf1Oh6SdQh8jbkrCmquO.XePk30FydsG51buFnpql4d3DO57DG', '2016-08-09 12:46:10', '2016-08-09 12:46:10', 15595101)
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+-------------------------------------------------------------------------------
+User::ArticlesListTest: test_should_update_title_of_updated_article_on_the_list
+-------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:46:10 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A46%3A09.480595%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:46:10 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:46:09.480595+02:00"}
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.4ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:09.480595') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:09.480595') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:09.480595') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 1.7ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:46:10 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:46:10 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:46:10 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:46:10 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:46:11 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (2.1ms)
+ Rendered main/articles/index.json.jbuilder (5.1ms)
+Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:46:11 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:11.042143') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:11.043483') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:11.044657') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A46%3A11.046062%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:46:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:46:11.046062+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:11.046062') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:11.046062') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:11.046062') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A46%3A11.046062%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:46:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:46:11.046062+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:11.046062') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:11.046062') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:11.046062') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.9ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:46:21 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.9ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:46:22 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:22.032497') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:22.033619') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:22.034610') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.2ms)
+ Rendered user/articles/index.json.jbuilder (4.6ms)
+Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:35.542922') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:35.544113') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:35.545180') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+Started GET "/user/articles" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.0ms)
+ Rendered user/articles/index.json.jbuilder (5.8ms)
+Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:46:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:35.856026') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:35.857055') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:35.858065') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[36mArticle Load (0.4ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ?[0m [["title", "WiAR"], ["text", "Lorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum II"], ["updated_at", "2016-08-09 12:46:35.901268"], ["id", 298486374]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:46:35.906139"], ["updated_at", "2016-08-09 12:46:35.906139"]]
+ [1m[35m (1.0ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A46%3A35.859037%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:46:36 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:46:35.859037+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:35.859037') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:35.859037') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:35.859037') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/user/articles/298486374?abbr=true" for 127.0.0.1 at 2016-08-09 14:46:36 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.1ms)
+ Rendered user/articles/show.json.jbuilder (6.0ms)
+Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
+ [1m[36m (2.7ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (2.0ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$3WSrT6N55w4cpF.ERI59rejDLJjRdw.z1m7UEx7.EuRn0DEIvLUH.', '2016-08-09 12:46:37', '2016-08-09 12:46:37', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$e5ufnqCr0vagS3/5Ya/ez.liLOV1WzsoOPHnOSwyMfLKA2DGE5GOO', '2016-08-09 12:46:37', '2016-08-09 12:46:37', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:46:37.000000', '2016-08-09 12:46:37', '2016-08-09 12:46:37', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:46:37', '2016-08-09 12:46:37', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$n9pDiF3..qywWpEainEcYessZNDw1Z6SpHGkNFG1stDwCp18B8AZe', '2016-08-02 12:46:37.000000', '2016-08-09 12:46:37', '2016-08-09 12:46:37', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$w6dX7M0Sf0irhidK0wXUQeK2saVcw6oM5hx8bKZ098vJDW8Q183qa', '2016-08-09 12:46:37', '2016-08-09 12:46:37', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+--------------------------------------------------------------------------------------------
+User::ArticlesListTest: test_should_auto_update_the_list_to_include_a_recently_added_article
+--------------------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:46:37 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:46:37 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:46:37 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:46:37 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:46:37 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:46:37 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.3ms)
+ Rendered main/articles/index.json.jbuilder (4.0ms)
+Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:46:38 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:38.011171') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:38.012473') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:38.013688') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:46:38 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.6ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:46:38 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:38.212528') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:38.213631') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:46:38.214605') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:46:59 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:46:59 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:47:00 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:47:00 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:47:00 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:47:00 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:47:00 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered user/articles/index.json.jbuilder (8.8ms)
+Completed 200 OK in 13ms (Views: 9.0ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:47:00 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:00.274077') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:00.275370') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:00.276410') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("title", "text", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Article #1"], ["text", "Lorem ipsum dolor sit amet, consectetur adipiscing elit.Lorem ipsum dolor sit amet, consectetur adipiscing elit."], ["user_id", 872278135], ["created_at", "2016-08-09 12:47:00.316186"], ["updated_at", "2016-08-09 12:47:00.316186"]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190963}"], ["obj_class", "Article"], ["obj_id", 980190963], ["event", "created"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:47:00.320163"], ["updated_at", "2016-08-09 12:47:00.320163"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A00.277241%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:04 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:00.277241+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:00.277241') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:00.277241') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:00.277241') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 1.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A00.277241%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:04 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:00.277241+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:00.277241') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:00.277241') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:00.277241') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 17ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/user/articles/980190963?abbr=true" for 127.0.0.1 at 2016-08-09 14:47:04 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"980190963"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 980190963]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190963]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.1ms)
+ Rendered user/articles/show.json.jbuilder (2.7ms)
+Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.5ms)
+Started GET "/user/articles/980190963?abbr=true" for 127.0.0.1 at 2016-08-09 14:47:04 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"980190963"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 980190963]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190963]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered user/articles/show.json.jbuilder (2.1ms)
+Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.4ms)
+ [1m[35m (4.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$.Tvk6iv6Q4Ew1/wiUKrgyOdjgvWC1Cu8laFjwxk.t7Fz20Z69GY8C', '2016-08-09 12:47:05', '2016-08-09 12:47:05', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$inDvnNn1xRV6XInjrhM8d.B1gDJqz1n9wsAZVQ7VPM/gup610oqq6', '2016-08-09 12:47:05', '2016-08-09 12:47:05', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:47:05.000000', '2016-08-09 12:47:05', '2016-08-09 12:47:05', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:47:05', '2016-08-09 12:47:05', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$xn.YwDv1Jm3HqYfqt/cMN.tZ.bnIkb.RQv8gueQaXUi/YJxUJJWM.', '2016-08-02 12:47:05.000000', '2016-08-09 12:47:05', '2016-08-09 12:47:05', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$.6F8EZ5xuA1bS619b/LtC.MAvCFW02IousDeBzw5QnRp1FU1/8rXK', '2016-08-09 12:47:05', '2016-08-09 12:47:05', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+---------------------------------------------------------------------------
+User::ArticlesListTest: test_should_remove_article_from_the_list_on_destroy
+---------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:47:05 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:47:05 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:47:05 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:47:05 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:47:05 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:47:05 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.8ms)
+ Rendered main/articles/index.json.jbuilder (5.1ms)
+Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:47:05 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:05.465397') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:05.466605') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:05.467633') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A05.468443%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:05.468443+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:05.468443') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:05.468443') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:05.468443') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.4ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A05.468443%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:05.468443+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:05.468443') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:05.468443') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:05.468443') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:47:16 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.8ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:47:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:16.465350') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:16.466619') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:16.467731') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:47:17 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:47:17 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:47:17 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:47:17 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:47:17 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:47:17 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:47:17 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.6ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.3ms)
+ Rendered user/articles/index.json.jbuilder (5.1ms)
+Completed 200 OK in 12ms (Views: 5.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:47:17 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:17.526248') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:17.527374') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:17.528276') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "destroyed"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:47:17.573943"], ["updated_at", "2016-08-09 12:47:17.573943"]]
+ [1m[35m (1.3ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A17.529080%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:17.529080+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:17.529080') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:17.529080') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:17.529080') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 1.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A17.529080%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:17.529080+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:17.529080') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:17.529080') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:17.529080') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A19.882776%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:30 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:19.882776+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:19.882776') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:19.882776') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:19.882776') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A19.882776%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:30 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:19.882776+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:19.882776') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:19.882776') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:19.882776') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)
+ [1m[36m (2.9ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$gLUK0jveUImmhND.RUi8zulBjssDv1c8M4ClsEfDk8Ua/K8MuL9mi', '2016-08-09 12:47:31', '2016-08-09 12:47:31', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$U7eYtVZzi5ybYB8MjLCjLu9cWyuYwi2h4YdORtmTmwK5NjHGrqk7.', '2016-08-09 12:47:31', '2016-08-09 12:47:31', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:47:31.000000', '2016-08-09 12:47:31', '2016-08-09 12:47:31', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:47:31', '2016-08-09 12:47:31', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$oeOXI6tEJdthD1C3ulsVROrTM5PonbXPKGt0eeSAVxRbBb9XWiiVK', '2016-08-02 12:47:31.000000', '2016-08-09 12:47:31', '2016-08-09 12:47:31', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$VvQ9lCb31urCxu3EGbtPHek0NFeJc9fKLlDFAgL6AddiSed28ncue', '2016-08-09 12:47:31', '2016-08-09 12:47:31', 15595101)
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+----------------------------------------------------------------
+User::ArticlesListTest: test_should_update_published_on_the_list
+----------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:47:31 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (2.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A30.861725%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:31 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:30.861725+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:30.861725') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:30.861725') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:30.861725') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:47:31 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:47:31 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:47:31 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:47:31 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:47:32 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (2.6ms)
+ Rendered main/articles/index.json.jbuilder (6.0ms)
+Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:47:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:32.081340') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:32.082824') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:32.083932') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.2ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:47:32 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.8ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:47:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:32.306215') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:32.307368') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:32.308296') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.9ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered user/articles/index.json.jbuilder (6.2ms)
+Completed 200 OK in 14ms (Views: 6.5ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.337799') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.346719') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.347946') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 18ms (Views: 0.2ms | ActiveRecord: 1.6ms)
+Started GET "/user/articles" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered user/articles/index.json.jbuilder (5.4ms)
+Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:47:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.719494') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.720657') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.721614') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "articles" SET "published_at" = ?, "updated_at" = ? WHERE "articles"."id" = ?[0m [["published_at", "2016-08-09 12:47:42.755958"], ["updated_at", "2016-08-09 12:47:42.756886"], ["id", 298486374]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:47:42.761004"], ["updated_at", "2016-08-09 12:47:42.761004"]]
+ [1m[35m (1.0ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A42.722625%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:44 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:42.722625+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.722625') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.722625') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.722625') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A42.722625%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:44 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:42.722625+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.722625') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.722625') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:42.722625') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/user/articles/298486374?abbr=true" for 127.0.0.1 at 2016-08-09 14:47:44 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered user/articles/show.json.jbuilder (2.7ms)
+Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.4ms)
+Started GET "/user/articles/298486374?abbr=true" for 127.0.0.1 at 2016-08-09 14:47:44 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered user/articles/show.json.jbuilder (2.2ms)
+Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A44.923023%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:55 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:44.923023+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:44.923023') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:44.923023') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:44.923023') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A44.923023%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:47:55 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:44.923023+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:44.923023') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:44.923023') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:44.923023') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 1.3ms)
+ [1m[36m (2.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$pS1UF4MevRERcj/IXeZrGeTo1zImxukt73FK28VAfM8a8dW1COGtu', '2016-08-09 12:47:55', '2016-08-09 12:47:55', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$zUDNRXJABINZL.Ki.DhvJupi62Af6q/bqSENc1mZSFTTsgJRxf/pa', '2016-08-09 12:47:55', '2016-08-09 12:47:55', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:47:55.000000', '2016-08-09 12:47:55', '2016-08-09 12:47:55', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:47:55', '2016-08-09 12:47:55', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$PhN8CSKJPNb6dmRJfSkYrOhN5hflQFIbyKIrfIG7pg2XVMYthKrM.', '2016-08-02 12:47:55.000000', '2016-08-09 12:47:55', '2016-08-09 12:47:55', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$5HuNA8isLbIPG3E7iL8DQ.jeIhHqvDHyjSSE8czEUDYg9v.v.zkkq', '2016-08-09 12:47:55', '2016-08-09 12:47:55', 15595101)
+ [1m[36m (1.2ms)[0m [1mcommit transaction[0m
+------------------------------------------------------------------------------
+User::ArticlesListTest: test_should_update_number_of_comments_if_one_was_added
+------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:47:56 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:47:56 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:47:56 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:47:56 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:47:56 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:47:57 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (4.4ms)
+Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:47:57 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:57.068927') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:57.070131') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:57.071319') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:48:07 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.8ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A57.072407%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:48:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:57.072407+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:57.072407') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:57.072407') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:57.072407') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.4ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A47%3A57.072407%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:48:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:47:57.072407+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:57.072407') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:57.072407') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:47:57.072407') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 1.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:48:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:07.368726') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.7ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:07.370544') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:07.375181') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 1.9ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:48:12 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:48:12 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:48:12 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:48:12 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:48:12 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:48:12 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:48:13 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.6ms)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered user/articles/index.json.jbuilder (5.6ms)
+Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:48:13 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:13.036794') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:13.038076') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:13.038981') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:48:13.088735"], ["updated_at", "2016-08-09 12:48:13.088735"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:48:13.092815"], ["updated_at", "2016-08-09 12:48:13.092815"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A48%3A13.040294%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:48:23 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:48:13.040294+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:13.040294') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:13.040294') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:13.040294') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A48%3A13.040294%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:48:23 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:48:13.040294+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:13.040294') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:13.040294') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:13.040294') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A48%3A23.235195%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:48:24 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:48:23.235195+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:23.235195') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:23.235195') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:23.235195') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A48%3A24.608999%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:48:25 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:48:24.608999+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:24.608999') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:24.608999') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:24.608999') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A48%3A25.233141%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:48:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:48:25.233141+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:25.233141') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:25.233141') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:25.233141') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A48%3A25.233141%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:48:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:48:25.233141+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:25.233141') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:25.233141') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:25.233141') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$dbrgD8xqzievLgIdGlQF3eJUV3L7ntgbRxyYkmAPrr6Rm8QEtaCNS', '2016-08-09 12:48:28', '2016-08-09 12:48:28', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$VpoKz9m.ErLi9F807jwmmOjYPzeZmbjnRlxhMfj.FeM.TBOfkMuEK', '2016-08-09 12:48:28', '2016-08-09 12:48:28', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:48:28.000000', '2016-08-09 12:48:28', '2016-08-09 12:48:28', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:48:28', '2016-08-09 12:48:28', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$GeX2loCYTTl3gKY8A9wH2O3jvDdHu5wv/uFBwKwkDL49E9o9uBN1a', '2016-08-02 12:48:28.000000', '2016-08-09 12:48:28', '2016-08-09 12:48:28', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$3nSLjjwTIiHygDZGwjPdJ.kjVqnV7lR2bBD1j39TUvBZNAfqWjao.', '2016-08-09 12:48:28', '2016-08-09 12:48:28', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+--------------------------------------------------------------------------------
+User::ArticlesListTest: test_should_update_number_of_comments_if_one_was_deleted
+--------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:48:28 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:48:28 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:48:28 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:48:28 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:48:28 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:48:28 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (6.8ms)
+Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:48:28 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:28.809582') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:28.810796') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:28.812019') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:48:28 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.6ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:48:29 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:29.032599') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:29.033684') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:29.034543') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:48:49 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:48:50 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:48:50 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:48:50 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:48:50 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:48:50 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:48:50 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.5ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.3ms)
+ Rendered user/articles/index.json.jbuilder (5.2ms)
+Completed 200 OK in 12ms (Views: 5.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:48:50 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:50.248604') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:50.249771') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:50.250833') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:48:50.300860"], ["updated_at", "2016-08-09 12:48:50.300860"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:48:50.305079"], ["updated_at", "2016-08-09 12:48:50.305079"]]
+ [1m[35m (1.0ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A48%3A50.251768%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:48:58 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:48:50.251768+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:50.251768') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:50.251768') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:50.251768') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A48%3A50.251768%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:48:58 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:48:50.251768+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:50.251768') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:50.251768') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:50.251768') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A48%3A58.865018%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:00 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:48:58.865018+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:58.865018') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:58.865018') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:58.865018') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 8ms (Views: 0.1ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A48%3A58.865018%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:00 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:48:58.865018+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:58.865018') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:58.865018') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:48:58.865018') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A49%3A00.901502%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:05 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:49:00.901502+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:00.901502') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:00.901502') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:00.901502') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A49%3A00.901502%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:05 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:49:00.901502+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:00.901502') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:00.901502') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:00.901502') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[36m (1.3ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$JPBOkBMN34muKdf.pF4MbujLNvjnI3QGlwxvSDL4jRQ4vLQ/CO5zC', '2016-08-09 12:49:05', '2016-08-09 12:49:05', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$0XSklx7Yx7oXh//KNILi1ulK7YA87w7E2Nne4l6ZdSUbDCdGYTMvW', '2016-08-09 12:49:05', '2016-08-09 12:49:05', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:49:05.000000', '2016-08-09 12:49:05', '2016-08-09 12:49:05', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:49:05', '2016-08-09 12:49:05', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$TL9EtDPi2E2EZ0S.QIfyVu4KiZhlA3qBidXGGrDl6q5K14BHL3xAG', '2016-08-02 12:49:05.000000', '2016-08-09 12:49:05', '2016-08-09 12:49:05', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$PCx2KnEAR6BG/Hm.vKqHJeS5GZtrOK1fdcqzIv1aNeB4Dev9CzlRW', '2016-08-09 12:49:05', '2016-08-09 12:49:05', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+------------------------------------------------------------
+Admin::ReviewArticleTest: test_should_auto_update_an_article
+------------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:49:05 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:49:05 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:49:05 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:49:05 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:49:05 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:49:05 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:05.650379') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:05.651659') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:05.652794') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:49:29 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:64573/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:49:29 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:49:29 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:49:29 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:49:29 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:49:29 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:49:29 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/_user.json.jbuilder (0.6ms)
+ Rendered admin/users/index.json.jbuilder (3.1ms)
+Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:49:29 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:29.300946') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:29.302510') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:29.303925') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:49:30 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A49%3A29.305372%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:30 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:49:29.305372+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:29.305372') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:29.305372') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:29.305372') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:49:30 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (3.2ms)
+ Rendered admin/articles/published.json.jbuilder (7.7ms)
+Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 1.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:49:30 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:30.987700') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:30.989065') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:30.990358') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A49%3A30.993505%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:49:30.993505+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:30.993505') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:30.993505') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:30.993505') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+Started GET "/admin/articles/980190962/edit" for 127.0.0.1 at 2016-08-09 14:49:32 +0200
+Processing by Admin::ArticlesController#edit as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/articles/edit.html.erb within layouts/application (4.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["title", "AGtTRA"], ["text", "TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT..."], ["updated_at", "2016-08-09 12:49:32.231607"], ["id", 980190962]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "updated"], ["created_at", "2016-08-09 12:49:32.235213"], ["updated_at", "2016-08-09 12:49:32.235213"]]
+ [1m[35m (1.0ms)[0m commit transaction
+Started GET "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:49:32 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article.json.jbuilder (1.9ms)
+ Rendered admin/articles/show.json.jbuilder (2.6ms)
+Completed 200 OK in 10ms (Views: 3.3ms | ActiveRecord: 0.8ms)
+Started GET "/admin/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:49:32 +0200
+Processing by Admin::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered admin/comments/index.json.jbuilder (1.1ms)
+Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:49:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:32.281039') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:32.283097') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:32.284372') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A49%3A32.285285%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:36 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:49:32.285285+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:32.285285') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:32.285285') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:32.285285') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 1.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A49%3A32.285285%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:36 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:49:32.285285+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:32.285285') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:32.285285') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:32.285285') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+ [1m[35m (3.3ms)[0m DELETE FROM "articles";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.4ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$W.08noKiFGlfjX0Mlhy6P.aOrLBeI1qmwa5l8sd8B.yMVVI8HhLFi', '2016-08-09 12:49:36', '2016-08-09 12:49:36', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$LosGgSbJUBbD3EIF3nPSAOBUmR1kLky8iRcvhj7Qi3e.mSJiLsPFO', '2016-08-09 12:49:36', '2016-08-09 12:49:36', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:49:36.000000', '2016-08-09 12:49:36', '2016-08-09 12:49:36', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:49:36', '2016-08-09 12:49:36', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$GiaRz8jBkI98WmW/QfVlt.EDhs4xAePQ10AO2PoLJh2ep5qEXVcTe', '2016-08-02 12:49:36.000000', '2016-08-09 12:49:36', '2016-08-09 12:49:36', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$sHL1uscaPwSZxeo3zCvEaeacyTkiasCXZf8bJAQ9G0rqBYgqgpsMe', '2016-08-09 12:49:36', '2016-08-09 12:49:36', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+-------------------------------------------------------
+Admin::ReviewArticleTest: test_should_update_an_article
+-------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:49:36 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.7ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (1.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:49:36 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:49:36 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:49:36 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:49:36 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:49:37 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:37.006191') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:37.007534') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:37.008784') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:49:40 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:64573/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:49:40 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:49:40 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:49:40 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:49:40 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:49:40 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:49:41 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0[0m
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/index.json.jbuilder (4.8ms)
+Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:49:41 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.071326') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.072751') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.073817') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:49:41 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:49:41 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (1.8ms)
+ Rendered admin/articles/published.json.jbuilder (5.1ms)
+Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:49:41 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.296664') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.297776') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.299199') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A49%3A41.300721%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:50 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:49:41.300721+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.300721') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.300721') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.300721') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A49%3A41.300721%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:50 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:49:41.300721+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.300721') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.300721') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:41.300721') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.2ms)
+Started GET "/admin/articles/980190962/edit" for 127.0.0.1 at 2016-08-09 14:49:51 +0200
+Processing by Admin::ArticlesController#edit as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/articles/edit.html.erb within layouts/application (4.9ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.2ms)
+Started GET "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:49:51 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mAdmin Load (0.4ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article.json.jbuilder (2.9ms)
+ Rendered admin/articles/show.json.jbuilder (4.0ms)
+Completed 200 OK in 12ms (Views: 4.4ms | ActiveRecord: 1.3ms)
+Started GET "/admin/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:49:51 +0200
+Processing by Admin::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.5ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered admin/comments/index.json.jbuilder (1.6ms)
+Completed 200 OK in 7ms (Views: 1.9ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:49:51 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:51.096201') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:51.097502') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:51.098513') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A49%3A51.099353%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:59 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:49:51.099353+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:51.099353') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:51.099353') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:51.099353') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 75ms (Views: 0.2ms | ActiveRecord: 1.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A49%3A51.099353%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:49:59 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:49:51.099353+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.5ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (4.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:51.099353') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:51.099353') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:49:51.099353') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 27ms (Views: 2.4ms | ActiveRecord: 5.9ms)
+Started PUT "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:49:59 +0200
+Processing by Admin::ArticlesController#update as JSON
+ Parameters: {"article"=>{"title"=>"A Guide to Testing Rails Applications", "text"=>"Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you'll need to understand how to set up this database and populate it with sample data.", "created_at"=>"Tue Aug 09 2016 14:49:36 GMT+0200 (CEST)", "updated_at"=>"Tue Aug 09 2016 14:49:36 GMT+0200 (CEST)", "comments_count"=>"0", "published_at"=>"Mon Aug 08 2016 14:49:36 GMT+0200 (CEST)", "published"=>"0", "admin_review"=>"Damn good article", "admin_rate"=>"5", "category_id"=>"8", "admin_review_started_at"=>"1470746991121"}, "id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Unpermitted parameters: title, text, created_at, updated_at, comments_count, published_at
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.7ms)[0m [1mUPDATE "articles" SET "admin_review" = ?, "category_id" = ?, "admin_rate" = ?, "published_at" = ?, "updated_at" = ?, "admin_review_time" = ? WHERE "articles"."id" = ?[0m [["admin_review", "Damn good article"], ["category_id", 8], ["admin_rate", 5], ["published_at", nil], ["updated_at", "2016-08-09 12:49:59.886020"], ["admin_review_time", 8.77], ["id", 980190962]]
+ [1m[35m (0.8ms)[0m commit transaction
+Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 1.8ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Started GET "/admin/articles/980190962/edit" for 127.0.0.1 at 2016-08-09 14:49:59 +0200
+Processing by Admin::ArticlesController#edit as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/articles/edit.html.erb within layouts/application (7.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:49:59 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:49:59 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:49:59 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:49:59 +0200
+Started GET "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article.json.jbuilder (2.6ms)
+ Rendered admin/articles/show.json.jbuilder (3.8ms)
+Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.6ms)
+Started GET "/admin/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by Admin::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered admin/comments/index.json.jbuilder (1.0ms)
+Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:00.117309') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:00.118592') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.6ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:00.119622') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$2/VuvRMgp53S4BPTWAntyuASorcO5hUdUd3BKEbuQU/O5QsnLIoTm', '2016-08-09 12:50:00', '2016-08-09 12:50:00', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$7WXVfNRnB0L4gCjulRd/s.vgSe.0e5bnGxkEjzjY37MT8PmrNchVW', '2016-08-09 12:50:00', '2016-08-09 12:50:00', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:50:00.000000', '2016-08-09 12:50:00', '2016-08-09 12:50:00', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:50:00', '2016-08-09 12:50:00', 298486374, 872278135)
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$OlUeGlQZGjgS7lJ/8aSv.OMKGPi9sPUXs8k8pMLbgiDG/tWcAZI9G', '2016-08-02 12:50:00.000000', '2016-08-09 12:50:00', '2016-08-09 12:50:00', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$pHJncF76fDnNcJ2NWBMBZutKCf3dK7T/gofbUn6rCFBCbfhoxYnYK', '2016-08-09 12:50:00', '2016-08-09 12:50:00', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+--------------------------------------------------------
+User::ArticlesCreatePageTest: test_should_create_article
+--------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (4.5ms)
+Completed 200 OK in 11ms (Views: 4.4ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:00.411221') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:00.412388') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:00.413826') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:00.513182') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:00.514403') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:00.515767') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:64573/user
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.8ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered user/articles/index.json.jbuilder (8.5ms)
+Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:00 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:00.998063') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:00.999235') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:01.000541') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/user/articles/new" for 127.0.0.1 at 2016-08-09 14:50:01 +0200
+Processing by User::ArticlesController#new as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/_form.html.erb (3.7ms)
+ Rendered user/articles/new.html.erb within layouts/application (5.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:01 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:01.118347') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:01.119378') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:01.120262') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A01.121094%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:01.121094+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:01.121094') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:01.121094') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:01.121094') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 1.5ms)
+Started POST "/user/articles" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Processing by User::ArticlesController#create as JSON
+ Parameters: {"article"=>{"title"=>"Article #1", "text"=>"The Ruby I18n (shorthand for internationalization) gem which is shipped with Ruby on Rails (starting from Rails 2.2) provides an easy-to-use and extensible framework for translating your application to a single custom language other than English or for providing multi-language support in your application. The process of 'internationalization' usually means to abstract all strings and other locale specific bits (such as date or currency formats) out of your application. The process of 'localization' means to provide translations and localized formats for these bits.", "created_at"=>"", "updated_at"=>"", "comments_count"=>"", "published_at"=>"", "published"=>"false", "admin_review"=>"", "admin_rate"=>"", "category_id"=>"", "admin_review_started_at"=>""}}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Unpermitted parameters: created_at, updated_at, comments_count, published_at, published, admin_review, admin_rate, category_id, admin_review_started_at
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "articles" ("title", "text", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Article #1"], ["text", "The Ruby I18n (shorthand for internationalization) gem which is shipped with Ruby on Rails (starting from Rails 2.2) provides an easy-to-use and extensible framework for translating your application to a single custom language other than English or for providing multi-language support in your application. The process of 'internationalization' usually means to abstract all strings and other locale specific bits (such as date or currency formats) out of your application. The process of 'localization' means to provide translations and localized formats for these bits."], ["user_id", 872278135], ["created_at", "2016-08-09 12:50:02.447320"], ["updated_at", "2016-08-09 12:50:02.447320"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190963}"], ["obj_class", "Article"], ["obj_id", 980190963], ["event", "created"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:50:02.453666"], ["updated_at", "2016-08-09 12:50:02.453666"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Completed 200 OK in 23ms (Views: 0.4ms | ActiveRecord: 2.9ms)
+ [1m[35m (1.3ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$e2QufeoD2lGS7iI8BAt6/eA/i.se0vYU90BpI/ZVx4.VgCm/kWuiq', '2016-08-09 12:50:02', '2016-08-09 12:50:02', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$2nSqGR6MW2NOs4vhunye..xUwOhKHzqOuW5X6GTiu0ktmfpurx8oi', '2016-08-09 12:50:02', '2016-08-09 12:50:02', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:50:02.000000', '2016-08-09 12:50:02', '2016-08-09 12:50:02', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:50:02', '2016-08-09 12:50:02', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$.2s1iIg.VRDVLZe0ugXEMumfEzacvwGn/.LbOfP.9WuGWMQsYvTYO', '2016-08-02 12:50:02.000000', '2016-08-09 12:50:02', '2016-08-09 12:50:02', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$DajhEJMPmM9CJ9f./Ah94ep.cjBXifXaVHPz6QtLpXf1p6KJB9iJW', '2016-08-09 12:50:02', '2016-08-09 12:50:02', 15595101)[0m
+ [1m[35m (1.1ms)[0m commit transaction
+-------------------------------------------------------------------
+Main::ArticlePageTest: test_should_auto_load_recently_added_comment
+-------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.6ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (8.1ms)
+Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:02.670673') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:02.671802') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.7ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:02.672694') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.4ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (2.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (2.2ms)
+ Rendered main/articles/show.json.jbuilder (7.5ms)
+Completed 200 OK in 17ms (Views: 8.0ms | ActiveRecord: 0.7ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.6ms)
+Completed 200 OK in 28ms (Views: 25.3ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:02 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ [1m[35m (0.1ms)[0m begin transaction
+ Parameters: {"synced_at"=>""}
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:50:02.871251"], ["updated_at", "2016-08-09 12:50:02.871251"]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:02.877674') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:50:02.879568"], ["updated_at", "2016-08-09 12:50:02.879568"]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:02.882535') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:02.885166') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 16ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A02.887984%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:03 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:02.887984+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:02.887984') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:02.887984') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:02.887984') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A03.820955%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:04 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:03.820955+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.8ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:03.820955') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:03.820955') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:03.820955') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 1.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A04.827962%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:05 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:04.827962+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:04.827962') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:04.827962') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:04.827962') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A05.816895%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:06 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:05.816895+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.4ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:05.816895') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:05.816895') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:05.816895') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.8ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A06.828735%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:06.828735+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:06.828735') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:06.828735') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:06.828735') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$oi52QPMxtx80qt99lf7lbeVI1i6TTXYAT/DDif4eP7bj.zhyLXjeK', '2016-08-09 12:50:07', '2016-08-09 12:50:07', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$r1.z3BkNxHWiRF9CE4W9Ae4p5iqbSd5DlCB/zaJL/ejry4T6CMedK', '2016-08-09 12:50:07', '2016-08-09 12:50:07', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:50:07.000000', '2016-08-09 12:50:07', '2016-08-09 12:50:07', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:50:07', '2016-08-09 12:50:07', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$GAPpkzAQ4nVcXPkl9GxjR.cL51ldjzEpAqVfwtBh9k20UpqF1Iau.', '2016-08-02 12:50:07.000000', '2016-08-09 12:50:07', '2016-08-09 12:50:07', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$qetG7ft6sSStK3HSyNGRRewf75fiAzxeUnxGQKpqHXxiBX5jeiziC', '2016-08-09 12:50:07', '2016-08-09 12:50:07', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+-------------------------------------------------------------------------------
+Main::ArticlePageTest: test_should_auto_remove_recently_deleted_comment_by_user
+-------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:50:07 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:08 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:08 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:08 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:08 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:50:08 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.5ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (2.1ms)
+ Rendered main/articles/index.json.jbuilder (5.4ms)
+Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:08 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:08.149792') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:08.150911') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.6ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:08.152213') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:08 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (2.5ms)
+ Rendered layouts/_flash.html.erb (0.3ms)
+Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:08 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (8.8ms)
+ Rendered main/articles/show.json.jbuilder (10.2ms)
+Completed 200 OK in 19ms (Views: 10.2ms | ActiveRecord: 1.3ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:50:08 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.3ms)
+Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:08 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:08.336281') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:08.338057') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:08.339562') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.4ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:50:08.379321"], ["updated_at", "2016-08-09 12:50:08.379321"]]
+ [1m[36m (1.3ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:50:08.387965"], ["updated_at", "2016-08-09 12:50:08.387965"]]
+ [1m[35m (0.9ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A08.340919%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:08.340919+02:00"}
+ [1m[36mUser Load (2.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:08.340919') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:08.340919') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:08.340919') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 3.0ms)
+Started GET "/articles/980190962/comments/1" for 127.0.0.1 at 2016-08-09 14:50:09 +0200
+Processing by Main::CommentsController#show as JSON
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[35mComment Load (0.4ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1 [["article_id", 980190962], ["id", 1]]
+ Rendered main/comments/_comment.json.jbuilder (0.9ms)
+ Rendered main/comments/show.json.jbuilder (9.8ms)
+Completed 200 OK in 42ms (Views: 39.5ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "comments" WHERE "comments"."id" = ? [["id", 1]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:50:09.398761"], ["updated_at", "2016-08-09 12:50:09.398761"]]
+ [1m[35m (1.0ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A09.314662%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:10 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:09.314662+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:09.314662') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:09.314662') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:09.314662') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A10.312833%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:11 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:10.312833+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:10.312833') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:10.312833') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:10.312833') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A11.319578%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:12 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:11.319578+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:11.319578') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:11.319578') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:11.319578') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A12.321781%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:13 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:12.321781+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:12.321781') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:12.321781') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:12.321781') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A13.316069%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:14 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:13.316069+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:13.316069') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:13.316069') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:13.316069') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A14.309650%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:14.309650+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:14.309650') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:14.309650') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:14.309650') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$Upr1kUTmvBBhc8X00c4lYuWSxxpVKQfPJE41nOAjh5NqwFqcDAGeK', '2016-08-09 12:50:15', '2016-08-09 12:50:15', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$k8Mx5t5dfYOqQWfiQGpCfediBzrFc9I3.aAB4FBhniTAABULKnXSa', '2016-08-09 12:50:15', '2016-08-09 12:50:15', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:50:15.000000', '2016-08-09 12:50:15', '2016-08-09 12:50:15', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:50:15', '2016-08-09 12:50:15', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$u1Jk4jLsmhs2YKR5p8kYxei1cpyF7jEFDRuZUbpD9KDNHjahyvaoe', '2016-08-02 12:50:15.000000', '2016-08-09 12:50:15', '2016-08-09 12:50:15', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$ZbnVQUpyL4QF1scUZbjE3ed9PEN4J6dgWsU78w3tGZ01C3CUZz85K', '2016-08-09 12:50:15', '2016-08-09 12:50:15', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+----------------------------------------------------------
+Main::ArticlePageTest: test_should_show_info_about_editing
+----------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered main/articles/index.json.jbuilder (7.6ms)
+Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:15.651764') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:15.652981') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:15.653941') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.1ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.5ms)
+ Rendered main/articles/show.json.jbuilder (4.4ms)
+Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.4ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.2ms)
+Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:15.798055') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:15.799455') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:15.800372') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"mark\":\"1470747016.3165271\",\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "updating"], ["created_at", "2016-08-09 12:50:16.318877"], ["updated_at", "2016-08-09 12:50:16.318877"]]
+ [1m[35m (2.6ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A15.801180%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:15.801180+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:15.801180') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:15.801180') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:15.801180') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.4ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.3ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$US33eseTuS3VUDcnLKRgjOQnoUzH4CwZ9NNKVgziTQ40wPnluFwHa', '2016-08-09 12:50:17', '2016-08-09 12:50:17', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$HDfazU1yAR4pT7RXitjaUeK9h1MSZ1nb7qzu75ObSBCFxejTGrsCe', '2016-08-09 12:50:17', '2016-08-09 12:50:17', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:50:17.000000', '2016-08-09 12:50:17', '2016-08-09 12:50:17', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:50:17', '2016-08-09 12:50:17', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$J44iutp3g07RfT4llO5b3eQbyHQzKi689d0rYTBYqYafUgFGXqudC', '2016-08-02 12:50:17.000000', '2016-08-09 12:50:17', '2016-08-09 12:50:17', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$QaMXBxL2ZgdIWWm/lCxR8.ZSY.Tf4BSPT0XFCHJVH2Xj.wTtMwJfC', '2016-08-09 12:50:17', '2016-08-09 12:50:17', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+------------------------------------------------
+Main::ArticlePageTest: test_should_add_a_comment
+------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:50:17 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.6ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:17 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:17 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:17 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:17 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:50:17 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.5ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (9.3ms)
+Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:17 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:17.268689') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:17.269810') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:17.271242') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:17 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:17 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.4ms)
+ Rendered main/articles/show.json.jbuilder (1.9ms)
+Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.4ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:50:17 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.3ms)
+Completed 200 OK in 6ms (Views: 1.9ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:17 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:17.413552') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:17.414716') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:17.415609') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A17.416461%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:18 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:17.416461+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:17.416461') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:17.416461') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:17.416461') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/articles/980190962/comments" for 127.0.0.1 at 2016-08-09 14:50:18 +0200
+Processing by Main::CommentsController#create as JSON
+ Parameters: {"comment"=>{"author"=>"David", "text"=>"Nice article man!", "article_id"=>"980190962", "created_at"=>"", "updated_at"=>"", "emotion"=>"", "pinned"=>"", "admin_rate"=>""}, "article_id"=>"980190962"}
+Unpermitted parameters: created_at, updated_at, emotion, pinned, admin_rate
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "David"], ["text", "Nice article man!"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:50:18.820796"], ["updated_at", "2016-08-09 12:50:18.820796"]]
+ [1m[35m (1.2ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:50:18.826371"], ["updated_at", "2016-08-09 12:50:18.826371"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Completed 200 OK in 15ms (Views: 0.3ms | ActiveRecord: 3.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A18.444116%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:18.444116+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:18.444116') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:18.444116') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:18.444116') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/articles/980190962/comments/1" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Processing by Main::CommentsController#show as JSON
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[36mComment Load (0.1ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 980190962], ["id", 1]]
+ Rendered main/comments/_comment.json.jbuilder (0.2ms)
+ Rendered main/comments/show.json.jbuilder (0.7ms)
+Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (2.4ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$0u1Xm7uqHfXDuuCu1QOweO6S0PmL/WZ2tyPG2JWJ.v5nIKr8/JGj6', '2016-08-09 12:50:19', '2016-08-09 12:50:19', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$yRyprXwIrT3ol5H4L5tBnOjmAZ80dZxU4hII5/vy44tYTZYEm3Sfu', '2016-08-09 12:50:19', '2016-08-09 12:50:19', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:50:19.000000', '2016-08-09 12:50:19', '2016-08-09 12:50:19', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:50:19', '2016-08-09 12:50:19', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$ekVMORTZKR5olaPrMonaKe/SdKZZ6JKOB6ZBdTrydftg5YNH7SU4O', '2016-08-02 12:50:19.000000', '2016-08-09 12:50:19', '2016-08-09 12:50:19', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$072Ud7XcAQfBF9KkVHQ0PumvEDHWobjZvJ3dGrt1ObyChLx6Qaxae', '2016-08-09 12:50:19', '2016-08-09 12:50:19', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+--------------------------------------------------------------------------
+Main::ArticlePageTest: test_should_auto_update_article's_title_and_content
+--------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered main/articles/index.json.jbuilder (6.7ms)
+Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:19.836919') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:19.838134') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:19.839016') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.3ms)
+ Rendered main/articles/show.json.jbuilder (3.7ms)
+Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.4ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (0.9ms)
+Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:19.978600') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:19.979918') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:19.980938') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A19.981716%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:20 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:19.981716+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:19.981716') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:19.981716') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:19.981716') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A20.974241%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:20.974241+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:20.974241') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:20.974241') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:20.974241') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A21.977080%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:22 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:21.977080+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:21.977080') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:21.977080') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:21.977080') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A22.974677%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:23 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:22.974677+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:22.974677') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:22.974677') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:22.974677') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A23.974891%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:24 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:23.974891+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:23.974891') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:23.974891') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:23.974891') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ?[0m [["title", "A Guide to Testing Rails Applications (edited)"], ["text", "Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you'll need to understand how to set up this database and populate it with sample data. (edited)"], ["updated_at", "2016-08-09 12:50:25.081395"], ["id", 980190962]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "updated"], ["created_at", "2016-08-09 12:50:25.084761"], ["updated_at", "2016-08-09 12:50:25.084761"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A24.980284%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:25 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:24.980284+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:24.980284') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:24.980284') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:24.980284') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:25 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.5ms)
+ Rendered main/articles/show.json.jbuilder (2.1ms)
+Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms)
+ [1m[35m (1.2ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$cTldZokn9/gfQX0xPKaKAeNR1EOXJsfexglndeoYukFFPCJr8Rjr.', '2016-08-09 12:50:26', '2016-08-09 12:50:26', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$Do0FHqPBiVS40.veFZLmuuEbUWd4CpVjDqaOA4BcDM7RjhZ9t0COu', '2016-08-09 12:50:26', '2016-08-09 12:50:26', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:50:26.000000', '2016-08-09 12:50:26', '2016-08-09 12:50:26', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:50:26', '2016-08-09 12:50:26', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$Q6j1NWKQl5Clet.V.zfUrOIh8GF4Hk1SVmoWmF406Bdv9BO48X69m', '2016-08-02 12:50:26.000000', '2016-08-09 12:50:26', '2016-08-09 12:50:26', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$8jJvO1eXEqLB9O/qtiWy5.mIBwNcQI.mByDtAhPp9BlxbJJnfh7sG', '2016-08-09 12:50:26', '2016-08-09 12:50:26', 15595101)[0m
+ [1m[35m (1.1ms)[0m commit transaction
+-------------------------------------------------------------------------------
+Main::ArticlePageTest: test_should_auto_update_recently_updated_comment_by_user
+-------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (3.8ms)
+ Rendered main/articles/index.json.jbuilder (6.8ms)
+Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.205579') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.207032') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.208008') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.0ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.7ms)
+ Rendered main/articles/show.json.jbuilder (2.2ms)
+Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.5ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.2ms)
+Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.360602') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.361834') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.362874') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:50:26.381516"], ["updated_at", "2016-08-09 12:50:26.381516"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:50:26.385577"], ["updated_at", "2016-08-09 12:50:26.385577"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.4ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (4.0ms)
+ Rendered main/articles/show.json.jbuilder (4.7ms)
+Completed 200 OK in 11ms (Views: 5.0ms | ActiveRecord: 0.7ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered main/comments/_comment.json.jbuilder (0.9ms)
+ Rendered main/comments/index.json.jbuilder (10.0ms)
+Completed 200 OK in 13ms (Views: 10.4ms | ActiveRecord: 0.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:26 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.567506') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.569527') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.6ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.570932') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A26.572255%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:26.572255+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.572255') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.572255') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:26.572255') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A27.554291%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:28 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:27.554291+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:27.554291') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:27.554291') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:27.554291') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A28.552018%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:29 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:28.552018+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:28.552018') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:28.552018') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:28.552018') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A29.551233%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:30 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:29.551233+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:29.551233') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:29.551233') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:29.551233') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A30.548247%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:31 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:30.548247+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:30.548247') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:30.548247') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:30.548247') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "comments" SET "text" = ?, "updated_at" = ? WHERE "comments"."id" = ?[0m [["text", "Some nice thoughts dude (edited)"], ["updated_at", "2016-08-09 12:50:31.657415"], ["id", 1]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "updated"], ["created_at", "2016-08-09 12:50:31.660662"], ["updated_at", "2016-08-09 12:50:31.660662"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A31.553678%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:31.553678+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:31.553678') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:31.553678') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:31.553678') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/articles/980190962/comments/1" for 127.0.0.1 at 2016-08-09 14:50:32 +0200
+Processing by Main::CommentsController#show as JSON
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[36mComment Load (0.1ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 980190962], ["id", 1]]
+ Rendered main/comments/_comment.json.jbuilder (0.2ms)
+ Rendered main/comments/show.json.jbuilder (1.0ms)
+Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (1.4ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$nXor.pjoQg6y8dvRWcrPu.sgNnCZik4GrgIb5I.dJ9.u2VogtF.sS', '2016-08-09 12:50:32', '2016-08-09 12:50:32', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$buNdl02b6jDLnXbZVdQ.xu5XGf3DCXWuq7.LUiZti9MYc4655QU0e', '2016-08-09 12:50:32', '2016-08-09 12:50:32', 298486374)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:50:32.000000', '2016-08-09 12:50:32', '2016-08-09 12:50:32', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:50:32', '2016-08-09 12:50:32', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$8Y1.Lip9dxtQAZID1WhfZO8.S4M/DfiAcXrsSfgymuhpTl0Eskb9O', '2016-08-02 12:50:32.000000', '2016-08-09 12:50:32', '2016-08-09 12:50:32', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$R7Bk.rpBNJkES0xTvJL9bOgkzw8ncjJ0lGVJtAIm80uReL3bxTndO', '2016-08-09 12:50:32', '2016-08-09 12:50:32', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+-------------------------------------------------------
+Main::ArticlePageTest: test_should_go_to_article's_page
+-------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:50:32 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:32 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:32 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:32 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:32 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:50:32 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered main/articles/index.json.jbuilder (7.3ms)
+Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:32.895645') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:32.897246') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:32.898660') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.5ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.3ms)
+ Rendered main/articles/show.json.jbuilder (2.3ms)
+Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.4ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (0.9ms)
+Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.049541') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.050883') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.052052') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+ [1m[36m (2.6ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$bI8oDi3gCaVZVrxkGKWlyOmiGV1uyCKdeMpvl8P4612pKBHZcu6iu', '2016-08-09 12:50:33', '2016-08-09 12:50:33', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$JFLrvGt1J8UH6S7mct.du.haP5YY0iVnn8GoblJPIbpMrEWin0gmK', '2016-08-09 12:50:33', '2016-08-09 12:50:33', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:50:33.000000', '2016-08-09 12:50:33', '2016-08-09 12:50:33', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:50:33', '2016-08-09 12:50:33', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$HVfEdKQM9gVRR438p1mBeun1kcdcd0mfzTPGCiMvx5mk2V9iCI.Ay', '2016-08-02 12:50:33.000000', '2016-08-09 12:50:33', '2016-08-09 12:50:33', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$JL2dL3ps/AoxpvydJJrdsuD8.QrWzyv0vTc1N/7vYcJbOLHolFyg.', '2016-08-09 12:50:33', '2016-08-09 12:50:33', 15595101)
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+-------------------------------------------------------------------------------
+Main::ArticlePageTest: test_should_update_number_of_comments_if_one_was_deleted
+-------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered main/articles/index.json.jbuilder (6.6ms)
+Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.309423') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.310992') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.312213') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.6ms)
+ Rendered main/articles/show.json.jbuilder (2.5ms)
+Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.9ms)
+Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:33 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.456336') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.457556') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.458998') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 1.2ms)
+ [1m[35m (0.3ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:50:33.502806"], ["updated_at", "2016-08-09 12:50:33.502806"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:50:33.507102"], ["updated_at", "2016-08-09 12:50:33.507102"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A33.460367%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:34 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:33.460367+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.460367') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.460367') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:33.460367') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/articles/980190962/comments/1" for 127.0.0.1 at 2016-08-09 14:50:34 +0200
+Processing by Main::CommentsController#show as JSON
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[36mComment Load (0.1ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 980190962], ["id", 1]]
+ Rendered main/comments/_comment.json.jbuilder (0.2ms)
+ Rendered main/comments/show.json.jbuilder (1.0ms)
+Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:50:34.505285"], ["updated_at", "2016-08-09 12:50:34.505285"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A34.450600%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:34.450600+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:34.450600') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:34.450600') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:34.450600') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.5ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$605c2VXDSM.biFCqwa.5KemZL0.yTWvitdnJFMzBq8zfV2/mHiyi6', '2016-08-09 12:50:35', '2016-08-09 12:50:35', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$TTI8KlLCFfEgdcNKu98c6OQlfsP7QjxgDGn.STU5t1IL87gNAbuk2', '2016-08-09 12:50:35', '2016-08-09 12:50:35', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:50:35.000000', '2016-08-09 12:50:35', '2016-08-09 12:50:35', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:50:35', '2016-08-09 12:50:35', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$QMR/Tx71SNc0WziQmNJX7ezTDEXMWPFNT8yCkvZXqgtt1ZrHr8dNy', '2016-08-02 12:50:35.000000', '2016-08-09 12:50:35', '2016-08-09 12:50:35', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$8SqzGdwAt3OHq0uv.HWlq.CbJA5kiHBtnGLeZ6Y3SfOMyWBDYz7bC', '2016-08-09 12:50:35', '2016-08-09 12:50:35', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+-----------------------------------------------------------------------------
+Main::ArticlePageTest: test_should_update_number_of_comments_if_one_was_added
+-----------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.4ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.8ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (3.5ms)
+ Rendered main/articles/index.json.jbuilder (8.4ms)
+Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 1.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:35.663772') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:35.664929') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:35.665881') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.3ms)
+ Rendered main/articles/show.json.jbuilder (1.8ms)
+Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.4ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (0.9ms)
+Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:50:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:35.799719') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:35.801028') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:35.802317') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.4ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:50:35.846489"], ["updated_at", "2016-08-09 12:50:35.846489"]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:50:35.850062"], ["updated_at", "2016-08-09 12:50:35.850062"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A50%3A35.803786%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:50:36 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:50:35.803786+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:35.803786') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:35.803786') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:50:35.803786') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+Started GET "/articles/980190962/comments/1" for 127.0.0.1 at 2016-08-09 14:50:36 +0200
+Processing by Main::CommentsController#show as JSON
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[36mComment Load (0.1ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 980190962], ["id", 1]]
+ Rendered main/comments/_comment.json.jbuilder (0.4ms)
+ Rendered main/comments/show.json.jbuilder (1.2ms)
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$6WFnQoKuY5w7qPFgVmRKou7bPt7HzWpE4GV9eu4oI6Zat9zM3MqIi', '2016-08-09 12:50:56', '2016-08-09 12:50:56', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$DumPNl470p1KfQ5DP2wfCOss9jwCaKbWGkjU9QbwXu7Zip7uSwevq', '2016-08-09 12:50:56', '2016-08-09 12:50:56', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:50:55.000000', '2016-08-09 12:50:56', '2016-08-09 12:50:56', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:50:56', '2016-08-09 12:50:56', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$D8Ru5dV9tw.K4is6FV5UyO7GVRiKtNQE5JoJFIXQB6l0ekgtDZAjm', '2016-08-02 12:50:56.000000', '2016-08-09 12:50:56', '2016-08-09 12:50:56', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$tRP2oY1W88A6IyRm1Zwca.CyqAogbyaZ6b6.RUS8BIQkvcu2MjL1y', '2016-08-09 12:50:56', '2016-08-09 12:50:56', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+-------------------------------------------------------
+Main::ArticlePageTest: test_should_go_to_article's_page
+-------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:51:00 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (2.5ms)
+ Rendered layouts/_flash.html.erb (1.2ms)
+Completed 200 OK in 608ms (Views: 596.7ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:01 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:01 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:01 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:01 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:51:01 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mArticle Load (0.4ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (23.4ms)
+ Rendered main/articles/index.json.jbuilder (59.5ms)
+Completed 200 OK in 109ms (Views: 90.3ms | ActiveRecord: 1.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:01 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:01.596511') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:01 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (27.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 36ms (Views: 35.2ms | ActiveRecord: 0.2ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:01 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (2.3ms)
+ Rendered main/articles/show.json.jbuilder (4.4ms)
+Completed 200 OK in 14ms (Views: 9.7ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:01 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:01.952040') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:51:01 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.8ms)
+Completed 200 OK in 29ms (Views: 26.7ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.5ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.3ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$2JaJ8vd3dGhyZNzTVL8s4u9k8BtTiBSv4l51rj0XG338ejvD.bPFC', '2016-08-09 12:51:02', '2016-08-09 12:51:02', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$NMi0wmE9hX5Qg8HxekT8TeMGy0YIpMPJpQIfVGEuSXcifOiCHSLdW', '2016-08-09 12:51:02', '2016-08-09 12:51:02', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:51:02.000000', '2016-08-09 12:51:02', '2016-08-09 12:51:02', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:51:02', '2016-08-09 12:51:02', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$5V6j/Kxm7QOY3J6Rovfk1.wtqtOJ1JtLrtpRDThT3s5ATJCR0.eMO', '2016-08-02 12:51:02.000000', '2016-08-09 12:51:02', '2016-08-09 12:51:02', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$T7ONUriDfMxtsJixUag/IuMrxvHk/1nS6dF8DgTTx2bB5J5bEX0Q6', '2016-08-09 12:51:02', '2016-08-09 12:51:02', 15595101)
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+-------------------------------------------------------------------
+Main::ArticlePageTest: test_should_auto_load_recently_added_comment
+-------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:51:02 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.7ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:02 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:02 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:02 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:02 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:51:02 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (3.1ms)
+ Rendered main/articles/index.json.jbuilder (6.7ms)
+Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 1.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:02 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:02.367255') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:02 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:02 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.4ms)
+ Rendered main/articles/show.json.jbuilder (2.0ms)
+Completed 200 OK in 8ms (Views: 2.3ms | ActiveRecord: 0.8ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:51:02 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.1ms)
+Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:02 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:02.525097') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:51:02.541255"], ["updated_at", "2016-08-09 12:51:02.541255"]]
+ [1m[35m (0.7ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:51:02.566422"], ["updated_at", "2016-08-09 12:51:02.566422"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A02.526234%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:02.526234+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:02.526234') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/articles/980190962/comments/1" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Processing by Main::CommentsController#show as JSON
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 980190962], ["id", 1]]
+ Rendered main/comments/_comment.json.jbuilder (0.9ms)
+ Rendered main/comments/show.json.jbuilder (7.8ms)
+Completed 200 OK in 27ms (Views: 26.0ms | ActiveRecord: 0.2ms)
+ [1m[35m (1.8ms)[0m DELETE FROM "articles";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "admins";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.7ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$lfbAfA2VJIxKnSOnv57V4.mT1UT2Rsx5wYdFRH0H1Re.SgVWcu1bW', '2016-08-09 12:51:03', '2016-08-09 12:51:03', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$da0bPuhhKcTPbxPDs/zOUOcBYRVaJ0US4auzSotmpfsO6aUerU1fu', '2016-08-09 12:51:03', '2016-08-09 12:51:03', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:51:03.000000', '2016-08-09 12:51:03', '2016-08-09 12:51:03', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:51:03', '2016-08-09 12:51:03', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$p33k0GCnpjT.TXDCB2DZDus8Q/4OOcwIXRknA1mfW5ApJ.uJQSSuC', '2016-08-02 12:51:03.000000', '2016-08-09 12:51:03', '2016-08-09 12:51:03', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$X5fRNOSgXzgWxFZy9GrQRu2zwRtX34StAixusuk0yx/XWard408UG', '2016-08-09 12:51:03', '2016-08-09 12:51:03', 15595101)[0m
+ [1m[35m (1.2ms)[0m commit transaction
+-------------------------------------------------------------------------------
+Main::ArticlePageTest: test_should_update_number_of_comments_if_one_was_deleted
+-------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (7.0ms)
+Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.7ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:03.769372') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.4ms)
+ Rendered main/articles/show.json.jbuilder (1.9ms)
+Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.5ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (0.9ms)
+Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:03 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:03.922492') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:51:03.976212"], ["updated_at", "2016-08-09 12:51:03.976212"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:51:03.980666"], ["updated_at", "2016-08-09 12:51:03.980666"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A03.923730%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:04 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:03.923730+02:00"}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:03.923730') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/articles/980190962/comments/1" for 127.0.0.1 at 2016-08-09 14:51:04 +0200
+Processing by Main::CommentsController#show as JSON
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1 [["article_id", 980190962], ["id", 1]]
+ Rendered main/comments/_comment.json.jbuilder (0.2ms)
+ Rendered main/comments/show.json.jbuilder (0.8ms)
+Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "comments" WHERE "comments"."id" = ? [["id", 1]]
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:51:04.965922"], ["updated_at", "2016-08-09 12:51:04.965922"]]
+ [1m[35m (1.1ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A04.913268%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:05 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:04.913268+02:00"}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:04.913268') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[35m (1.2ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$hWIbp/UUk3qJ/dO8WKo0vetxZQuQWSoE1b9Gy21tLS1K/LGkHc.UW', '2016-08-09 12:51:05', '2016-08-09 12:51:05', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$VbDmSSmisz2YUpR4saNROuopzEAvIVsLvhJgMYi0aYK1kczIBqvUa', '2016-08-09 12:51:05', '2016-08-09 12:51:05', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:51:05.000000', '2016-08-09 12:51:05', '2016-08-09 12:51:05', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:51:05', '2016-08-09 12:51:05', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$tM6rx2C4A7lnw5PgFKJXb.8Ix71W12rdM2I.SX0BJIgrwUe4hXmDO', '2016-08-02 12:51:05.000000', '2016-08-09 12:51:05', '2016-08-09 12:51:05', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$02EkIqVvi7BmhjW8oidtyua7o70l8PZ.jR4Dc0HeghAZKQsrlor3W', '2016-08-09 12:51:05', '2016-08-09 12:51:05', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+--------------------------------------------------------------------------
+Main::ArticlePageTest: test_should_auto_update_article's_title_and_content
+--------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:51:05 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:06 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:06 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:06 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:06 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:51:06 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (4.9ms)
+Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:06 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:06.124563') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:06 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:06 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.6ms)
+ Rendered main/articles/show.json.jbuilder (2.2ms)
+Completed 200 OK in 8ms (Views: 2.5ms | ActiveRecord: 0.6ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:51:06 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.4ms)
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:06 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:06.261688') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A06.263219%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:06.263219+02:00"}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:06.263219') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A07.254191%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:08 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:07.254191+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:07.254191') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A08.255590%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:08.255590+02:00"}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:08.255590') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A09.257012%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:10 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:09.257012+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:09.257012') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A10.253260%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:11 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:10.253260+02:00"}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:10.253260') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ?[0m [["title", "A Guide to Testing Rails Applications (edited)"], ["text", "Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you'll need to understand how to set up this database and populate it with sample data. (edited)"], ["updated_at", "2016-08-09 12:51:11.348489"], ["id", 980190962]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "updated"], ["created_at", "2016-08-09 12:51:11.352623"], ["updated_at", "2016-08-09 12:51:11.352623"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A11.252557%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:11.252557+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:11.252557') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.5ms)
+ Rendered main/articles/show.json.jbuilder (2.0ms)
+Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$voPUG96q8qhkitn7HAmkROklmdZ9P8FFyfFjuBtgViuOgc1NHDYDe', '2016-08-09 12:51:12', '2016-08-09 12:51:12', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$WgoANY8ty9YhohybWpKhXuEbPduuQf/HNnOcW1INaJjs6awteF.DG', '2016-08-09 12:51:12', '2016-08-09 12:51:12', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:51:12.000000', '2016-08-09 12:51:12', '2016-08-09 12:51:12', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:51:12', '2016-08-09 12:51:12', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$lHbUVYPQam0TRw/JHyBZMOryH.Xpa.JCB7CvjMAlsWBSWg1TKRavi', '2016-08-02 12:51:12.000000', '2016-08-09 12:51:12', '2016-08-09 12:51:12', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$PwPNfUa8gCgxa77gi6YOZ.1RXb9OWs3/songAQ40CetmwKDX00qju', '2016-08-09 12:51:12', '2016-08-09 12:51:12', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+-----------------------------------------------------------------------------
+Main::ArticlePageTest: test_should_update_number_of_comments_if_one_was_added
+-----------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered main/articles/index.json.jbuilder (4.3ms)
+Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:12.520115') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.3ms)
+ Rendered main/articles/show.json.jbuilder (1.9ms)
+Completed 200 OK in 7ms (Views: 2.2ms | ActiveRecord: 0.5ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.2ms)
+Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:12 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:12.666930') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:51:12.715077"], ["updated_at", "2016-08-09 12:51:12.715077"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:51:12.718578"], ["updated_at", "2016-08-09 12:51:12.718578"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A12.668105%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:13 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:12.668105+02:00"}
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:12.668105') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+Started GET "/articles/980190962/comments/1" for 127.0.0.1 at 2016-08-09 14:51:13 +0200
+Processing by Main::CommentsController#show as JSON
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1 [["article_id", 980190962], ["id", 1]]
+ Rendered main/comments/_comment.json.jbuilder (0.3ms)
+ Rendered main/comments/show.json.jbuilder (1.2ms)
+Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)
+ [1m[36m (1.5ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$t3Ll.mqW3jxBcYlUn4gJhuhqCw5jQvWPYxr28d.ea0GKeKS6.TP9e', '2016-08-09 12:51:13', '2016-08-09 12:51:13', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$kS4md8noJyI9/N/NSnpczeXw5DGfJdvDVYOmeeMLpEpyUHNiEkkzy', '2016-08-09 12:51:13', '2016-08-09 12:51:13', 298486374)
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:51:13.000000', '2016-08-09 12:51:13', '2016-08-09 12:51:13', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:51:13', '2016-08-09 12:51:13', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$BsbUqhPoXWlGZPkl1kFm7exO136zTYSXNis.baB9.6iCPlhyrM4YO', '2016-08-02 12:51:13.000000', '2016-08-09 12:51:13', '2016-08-09 12:51:13', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$0R5ho0TZd/me6L.pouu2j.J4xJhAFbsE9Q5l41JVRdPvP9VPGi8ay', '2016-08-09 12:51:13', '2016-08-09 12:51:13', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+------------------------------------------------
+Main::ArticlePageTest: test_should_add_a_comment
+------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:51:13 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:13 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:13 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:13 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:13 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:51:13 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (5.2ms)
+Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:13 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:13.872244') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:13 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:13 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.5ms)
+ Rendered main/articles/show.json.jbuilder (2.1ms)
+Completed 200 OK in 11ms (Views: 4.8ms | ActiveRecord: 0.6ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:51:14 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.0ms)
+Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:14 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:14.018535') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A14.019631%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:14.019631+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:14.019631') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started POST "/articles/980190962/comments" for 127.0.0.1 at 2016-08-09 14:51:15 +0200
+Processing by Main::CommentsController#create as JSON
+ Parameters: {"comment"=>{"author"=>"David", "text"=>"Nice article man!", "article_id"=>"980190962", "created_at"=>"", "updated_at"=>"", "emotion"=>"", "pinned"=>"", "admin_rate"=>""}, "article_id"=>"980190962"}
+Unpermitted parameters: created_at, updated_at, emotion, pinned, admin_rate
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "David"], ["text", "Nice article man!"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:51:15.349442"], ["updated_at", "2016-08-09 12:51:15.349442"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:51:15.355105"], ["updated_at", "2016-08-09 12:51:15.355105"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 2.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A15.009988%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:15.009988+02:00"}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:15.009988') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/articles/980190962/comments/1" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Processing by Main::CommentsController#show as JSON
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1 [["article_id", 980190962], ["id", 1]]
+ Rendered main/comments/_comment.json.jbuilder (0.2ms)
+ Rendered main/comments/show.json.jbuilder (0.7ms)
+Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (1.4ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$qPXgnpKONtCSyzJZndTG6OEDfkYY76roT/KVN4zmuDaogNI0dXNGG', '2016-08-09 12:51:16', '2016-08-09 12:51:16', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$88PtljVCmTP9F9JJ68PScOrWZIWkICClb7jAVQOejJLNSbepyWqQ6', '2016-08-09 12:51:16', '2016-08-09 12:51:16', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:51:16.000000', '2016-08-09 12:51:16', '2016-08-09 12:51:16', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:51:16', '2016-08-09 12:51:16', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$jHVfdZqs7ooSPBcaFZ5gzOfL6rNoujTk1VepV0O4HZuWUJ3jhYJsW', '2016-08-02 12:51:16.000000', '2016-08-09 12:51:16', '2016-08-09 12:51:16', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$W18G4C0Akd0LpAjwMQkdDuCUXl70o.YDfxkxo/3BeMrHuBX.m9TlC', '2016-08-09 12:51:16', '2016-08-09 12:51:16', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+----------------------------------------------------------
+Main::ArticlePageTest: test_should_show_info_about_editing
+----------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.8ms)
+ Rendered main/articles/index.json.jbuilder (5.2ms)
+Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:16.400793') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.5ms)
+ Rendered main/articles/show.json.jbuilder (4.2ms)
+Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 0.4ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.0ms)
+Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:16.537985') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"mark\":\"1470747077.0575192\",\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "updating"], ["created_at", "2016-08-09 12:51:17.060153"], ["updated_at", "2016-08-09 12:51:17.060153"]]
+ [1m[35m (1.4ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A16.539237%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:17 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:16.539237+02:00"}
+ [1m[36mLoco::Notification Load (0.6ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:16.539237') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$57sR132ugB/nlmMIbD96Y.82BDFnoZWUeBHI2JyERi3gZycUsMP96', '2016-08-09 12:51:17', '2016-08-09 12:51:17', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$Z7CtYX/joqebwATMtL/J1.W5U6MK3ft.CfLj1QI2iYUzvLM/rOpN.', '2016-08-09 12:51:17', '2016-08-09 12:51:17', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:51:17.000000', '2016-08-09 12:51:17', '2016-08-09 12:51:17', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:51:17', '2016-08-09 12:51:17', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$ncxwLQM/FawTuGgPrHPmsu2QQqqTayNJo3ZE8ENWvSpik7zTdLuQ6', '2016-08-02 12:51:17.000000', '2016-08-09 12:51:17', '2016-08-09 12:51:17', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$Wnvohk0ivMYDv8Cg5sFbO..Ulmws1f0ROvvQX1PWFknhl4fe0rM3G', '2016-08-09 12:51:17', '2016-08-09 12:51:17', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+-------------------------------------------------------------------------------
+Main::ArticlePageTest: test_should_auto_remove_recently_deleted_comment_by_user
+-------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:51:17 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:17 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:17 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:17 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:17 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:51:18 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered main/articles/index.json.jbuilder (4.9ms)
+Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:18 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:18.013482') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:18 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:18 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.5ms)
+ Rendered main/articles/show.json.jbuilder (2.0ms)
+Completed 200 OK in 8ms (Views: 2.4ms | ActiveRecord: 0.5ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:51:18 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.3ms)
+Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:18 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:18.149181') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:51:18.164669"], ["updated_at", "2016-08-09 12:51:18.164669"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:51:18.169238"], ["updated_at", "2016-08-09 12:51:18.169238"]]
+ [1m[35m (0.9ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A18.150872%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:18.150872+02:00"}
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:18.150872') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+Started GET "/articles/980190962/comments/1" for 127.0.0.1 at 2016-08-09 14:51:19 +0200
+Processing by Main::CommentsController#show as JSON
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[35mComment Load (0.1ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1 [["article_id", 980190962], ["id", 1]]
+ Rendered main/comments/_comment.json.jbuilder (0.3ms)
+ Rendered main/comments/show.json.jbuilder (1.1ms)
+Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "comments" WHERE "comments"."id" = ? [["id", 1]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:51:19.207867"], ["updated_at", "2016-08-09 12:51:19.207867"]]
+ [1m[35m (1.0ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A19.139854%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:20 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:19.139854+02:00"}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:19.139854') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A20.146801%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:20.146801+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:20.146801') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A21.140286%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:22 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:21.140286+02:00"}
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:21.140286') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A22.135960%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:23 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:22.135960+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:22.135960') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A23.136746%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:24 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:23.136746+02:00"}
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:23.136746') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A24.136037%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:24.136037+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:24.136037') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$h8hLq9u4OP2Cg.J5.woAPe7gfhTacjdXz3LykJiRj9njMrsknzhHW', '2016-08-09 12:51:25', '2016-08-09 12:51:25', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$TXM2LTHk.cDghzLGkYGY6.qYPR0wMadHGjXHKsJj2nhYhjg5wmPZe', '2016-08-09 12:51:25', '2016-08-09 12:51:25', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:51:25.000000', '2016-08-09 12:51:25', '2016-08-09 12:51:25', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:51:25', '2016-08-09 12:51:25', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$NKRBDt1O7WWvz3lWXGjKl.7VhuIEQCk8iRxgYHanDs6LRZGPnd262', '2016-08-02 12:51:25.000000', '2016-08-09 12:51:25', '2016-08-09 12:51:25', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$gWMUGFBnjb8QxJLvYi1bT.YKBNgg88gXQmSsqV/RNq9y7LZjeYSI.', '2016-08-09 12:51:25', '2016-08-09 12:51:25', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+-------------------------------------------------------------------------------
+Main::ArticlePageTest: test_should_auto_update_recently_updated_comment_by_user
+-------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.9ms)
+ Rendered main/articles/index.json.jbuilder (4.9ms)
+Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:25.440210') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (1.4ms)
+ Rendered main/articles/show.json.jbuilder (4.0ms)
+Completed 200 OK in 10ms (Views: 4.5ms | ActiveRecord: 0.6ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered main/comments/index.json.jbuilder (1.0ms)
+Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:25.584966') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:51:25.644931"], ["updated_at", "2016-08-09 12:51:25.644931"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:51:25.648396"], ["updated_at", "2016-08-09 12:51:25.648396"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Main::ArticlesController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ Rendered main/articles/show.html.erb within layouts/application (1.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Started GET "/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article.json.jbuilder (2.0ms)
+ Rendered main/articles/show.json.jbuilder (4.6ms)
+Completed 200 OK in 11ms (Views: 5.0ms | ActiveRecord: 0.6ms)
+Started GET "/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Main::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered main/comments/_comment.json.jbuilder (0.7ms)
+ Rendered main/comments/index.json.jbuilder (9.5ms)
+Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:25 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:25.882705') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A25.883777%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:26 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:25.883777+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:25.883777') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A26.923438%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:26.923438+02:00"}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:26.923438') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A27.869543%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:31 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:27.869543+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:27.869543') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A27.869543%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:31 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:27.869543+02:00"}
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:27.869543') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "comments" SET "text" = ?, "updated_at" = ? WHERE "comments"."id" = ?[0m [["text", "Some nice thoughts dude (edited)"], ["updated_at", "2016-08-09 12:51:31.655321"], ["id", 1]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "updated"], ["created_at", "2016-08-09 12:51:31.659014"], ["updated_at", "2016-08-09 12:51:31.659014"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A31.410618%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:31.410618+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:31.410618') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/articles/980190962/comments/1" for 127.0.0.1 at 2016-08-09 14:51:32 +0200
+Processing by Main::CommentsController#show as JSON
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 980190962], ["id", 1]]
+ Rendered main/comments/_comment.json.jbuilder (0.2ms)
+ Rendered main/comments/show.json.jbuilder (0.8ms)
+Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.2ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A32.434576%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:32.434576+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:32.434576') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A51%3A32.434576%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:51:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:51:32.434576+02:00"}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:32.434576') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+ [1m[35m (1.6ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$dw/I9qDrG0lI5eNj8XLhOexFU5OYZFn26P4JXNwLEhJIe9VCBqIN6', '2016-08-09 12:51:42', '2016-08-09 12:51:42', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$sqClth3cJipVgQ7LJ3UOu.41IjzE2H5W2s9hGxwlPWBx64geIS9eO', '2016-08-09 12:51:42', '2016-08-09 12:51:42', 298486374)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:51:42.000000', '2016-08-09 12:51:42', '2016-08-09 12:51:42', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:51:42', '2016-08-09 12:51:42', 298486374, 872278135)
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$h.6PfMM7r8MrlXnSDoijLOP9bYSDkGe9C2J9F0qbAAE1jkXPsoE.2', '2016-08-02 12:51:42.000000', '2016-08-09 12:51:42', '2016-08-09 12:51:42', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$0frhtFnUqcTL19BX7X7SlOAFm58ZAHrgYVp906VezXVrgdXENCHLm', '2016-08-09 12:51:42', '2016-08-09 12:51:42', 15595101)[0m
+ [1m[35m (1.1ms)[0m commit transaction
+--------------------------------------------------------------------------
+Admin::EditCommentTest: test_should_init_js_Comment's_object_based_on_form
+--------------------------------------------------------------------------
+ [1m[36mArticle Load (0.5ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:51:42.819804"], ["updated_at", "2016-08-09 12:51:42.819804"]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:51:42.825812"], ["updated_at", "2016-08-09 12:51:42.825812"]]
+ [1m[36m (1.7ms)[0m [1mcommit transaction[0m
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:51:42 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (2.3ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (6.7ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 16ms (Views: 15.6ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:42 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:43 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:43 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:43 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:43 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:43.293926') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:51:46 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mAdmin Load (0.3ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:52002/admin
+Completed 302 Found in 10ms (ActiveRecord: 0.3ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:51:46 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:51:46 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:51:46 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:51:46 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:51:46 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:46 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:46.680165') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:46.681706') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:51:46 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0
+ Rendered admin/users/_user.json.jbuilder (1.1ms)
+ Rendered admin/users/_user.json.jbuilder (0.4ms)
+ Rendered admin/users/index.json.jbuilder (6.0ms)
+Completed 200 OK in 25ms (Views: 22.1ms | ActiveRecord: 0.6ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:51:46 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:47 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:47.020905') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:47.022336') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:51:47 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (2.0ms)
+ Rendered admin/articles/published.json.jbuilder (8.2ms)
+Completed 200 OK in 17ms (Views: 13.1ms | ActiveRecord: 1.0ms)
+Started GET "/admin/articles/980190962/edit" for 127.0.0.1 at 2016-08-09 14:51:47 +0200
+Processing by Admin::ArticlesController#edit as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/articles/edit.html.erb within layouts/application (22.4ms)
+ Rendered layouts/_flash.html.erb (0.9ms)
+Completed 200 OK in 34ms (Views: 32.9ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:47 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:47.482760') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:47.484066') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:51:47 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered admin/articles/_article.json.jbuilder (2.2ms)
+ Rendered admin/articles/show.json.jbuilder (9.6ms)
+Completed 200 OK in 36ms (Views: 31.8ms | ActiveRecord: 0.7ms)
+Started GET "/admin/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:51:47 +0200
+Processing by Admin::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["article_id", 980190962]]
+ Rendered admin/comments/_comment.json.jbuilder (1.7ms)
+ Rendered admin/comments/index.json.jbuilder (10.5ms)
+Completed 200 OK in 38ms (Views: 33.2ms | ActiveRecord: 0.7ms)
+Started GET "/admin/articles/980190962/comments/1/edit" for 127.0.0.1 at 2016-08-09 14:51:47 +0200
+Processing by Admin::CommentsController#edit as HTML
+ Parameters: {"article_id"=>"980190962", "id"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mComment Load (0.1ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1 [["article_id", 980190962], ["id", 1]]
+ Rendered admin/comments/edit.html.erb within layouts/application (5.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 18ms (Views: 14.8ms | ActiveRecord: 0.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:51:47 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:47.920364') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:51:47.921636') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$H.JbuzzFrAjzLrR8XEVfhO5DX5ikdSUDuD9pPDKH4sVjVx92iz5xO', '2016-08-09 12:52:02', '2016-08-09 12:52:02', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$YjQ/4zOPpss2G00Vakdkte9xBAvBLDZpeSOqjygt49Uq.MfD1iM3S', '2016-08-09 12:52:02', '2016-08-09 12:52:02', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:52:02.000000', '2016-08-09 12:52:02', '2016-08-09 12:52:02', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:52:02', '2016-08-09 12:52:02', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$HrkuUK8IJ2v4cVKnlPXI4.h7cDQMNv8963.sOxadSU/FJcafsTtq6', '2016-08-02 12:52:02.000000', '2016-08-09 12:52:02', '2016-08-09 12:52:02', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$frl8LKxz18RWa7AAJLPUFu/NKlLvult2x.zFsQnzSjBIAY4c5YHfm', '2016-08-09 12:52:02', '2016-08-09 12:52:02', 15595101)[0m
+ [1m[35m (1.3ms)[0m commit transaction
+-----------------------------------------------------------------------------
+DisconnectionTest: test_should_show_alert_about_disconnection_from_the_server
+-----------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:52:02 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:52:02 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:52:02 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:52:02 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:52:02 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:52:02 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (4.3ms)
+Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:02 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mAdmin Load (0.3ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:02.928747') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:02.930397') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[35m (3.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$zvYHniM5t./sHCbcZoPs7OGEPun/DqVU3Z/1xdxYmtY51u3aKH5RC', '2016-08-09 12:52:07', '2016-08-09 12:52:07', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$w1Qrpy2BczF51RKhJ6KGVuHB9O4ao0nbzGPFz0gjVs9QZQtD8pY1O', '2016-08-09 12:52:07', '2016-08-09 12:52:07', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:52:07.000000', '2016-08-09 12:52:07', '2016-08-09 12:52:07', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:52:07', '2016-08-09 12:52:07', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$a1rsAKQN8OH2vSTj7NHS/e8wRydoKH./cssz8UtbGaVfJrFjgQl3C', '2016-08-02 12:52:07.000000', '2016-08-09 12:52:07', '2016-08-09 12:52:07', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$I6tyVfA57O4wg.KDLj8sp.kPBqgetnByOY2GQV4n.wKlr5pVCiCm6', '2016-08-09 12:52:07', '2016-08-09 12:52:07', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+----------------------------------------------------------
+User::ArticleShowPageTest: test_should_auto_update_article
+----------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:52:07 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.6ms)
+ Rendered layouts/_flash.html.erb (0.4ms)
+Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:52:07 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:52:07 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:52:07 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:52:07 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:52:07 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (4.7ms)
+Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:07.387740') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:52:07 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (2.4ms)
+ Rendered user/sessions/new.html.erb within layouts/application (6.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 17ms (Views: 16.8ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:08 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:08.012686') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 12.3ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.4ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.3ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.5ms)
+ Rendered user/articles/index.json.jbuilder (9.6ms)
+Completed 200 OK in 25ms (Views: 19.8ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:09.645864') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:09.647490') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (2.1ms)
+ Rendered user/articles/show.json.jbuilder (4.8ms)
+Completed 200 OK in 18ms (Views: 14.7ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (2.2ms)
+Completed 200 OK in 43ms (Views: 38.3ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:09.961787') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:09.962950') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A09.964255%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:11 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:09.964255+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:09.964255') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:09.964255') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A11.202274%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:11 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:11.202274+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:11.202274') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:11.202274') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A11.948550%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:14 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:11.948550+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:11.948550') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:11.948550') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A11.948550%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:14 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:11.948550+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:11.948550') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:11.948550') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m UPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["title", "WiAR"], ["text", "Lorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum II"], ["updated_at", "2016-08-09 12:52:14.933852"], ["id", 298486374]]
+ [1m[36m (1.2ms)[0m [1mcommit transaction[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:52:14.939923"], ["updated_at", "2016-08-09 12:52:14.939923"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A14.827920%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:14.827920+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:14.827920') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:14.827920') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A14.827920%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:14.827920+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:14.827920') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:14.827920') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:52:19 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.3ms)
+ Rendered user/articles/show.json.jbuilder (1.9ms)
+Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:52:19 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.5ms)
+ Rendered user/articles/show.json.jbuilder (2.1ms)
+Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms)
+ [1m[35m (1.6ms)[0m DELETE FROM "articles";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.6ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$Hqi2Z1eSX3Oih1FW5ZTe/upQcFjWEX2/DfN7sz2xLO.h3gmpY32SO', '2016-08-09 12:52:19', '2016-08-09 12:52:19', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$cdTCeWoo1EpuHnt8m51yzet4LO4nOUAbJjH3892NOruTl.CtbuMgG', '2016-08-09 12:52:19', '2016-08-09 12:52:19', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:52:19.000000', '2016-08-09 12:52:19', '2016-08-09 12:52:19', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:52:19', '2016-08-09 12:52:19', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$3t8GtXb9dhD6bLqugJXcBed/1axbPc6ocAnav5vzWj0J8hvK2FH9O', '2016-08-02 12:52:19.000000', '2016-08-09 12:52:19', '2016-08-09 12:52:19', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$79nbJqyIZTvywFacxlKgPOFldFy8F1hV7unQSoYQn44Yp5dMV0hlq', '2016-08-09 12:52:19', '2016-08-09 12:52:19', 15595101)[0m
+ [1m[35m (1.1ms)[0m commit transaction
+----------------------------------------------------------
+User::ArticleShowPageTest: test_should_auto_update_comment
+----------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:52:19 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:52:19 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:52:19 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:52:19 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:52:19 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:52:19 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (4.3ms)
+Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:19.987494') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:52:20 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (1.0ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:20 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:20.213690') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.4ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered user/articles/index.json.jbuilder (6.6ms)
+Completed 200 OK in 11ms (Views: 6.5ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:37.552093') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:37.553608') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 298486374], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:52:37.764451"], ["updated_at", "2016-08-09 12:52:37.764451"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:52:37.768470"], ["updated_at", "2016-08-09 12:52:37.768470"]]
+ [1m[35m (1.2ms)[0m commit transaction
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.6ms)
+ Rendered user/articles/show.json.jbuilder (2.5ms)
+Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/_comment.json.jbuilder (0.8ms)
+ Rendered user/comments/index.json.jbuilder (10.3ms)
+Completed 200 OK in 17ms (Views: 10.9ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:37.819245') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:37.820423') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:52:37 +0200
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:52:38 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (2.1ms)
+ Rendered user/articles/show.json.jbuilder (2.8ms)
+Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.4ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:52:38 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ Rendered user/comments/_comment.json.jbuilder (0.3ms)
+ Rendered user/comments/index.json.jbuilder (2.2ms)
+Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:38 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:38.075709') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:38.077374') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A38.078516%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:48 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:38.078516+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:38.078516') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:38.078516') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A38.078516%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:48 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:38.078516+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:38.078516') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:38.078516') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A48.265906%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:51 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:48.265906+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:48.265906') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:48.265906') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A48.265906%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:51 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:48.265906+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:48.265906') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:48.265906') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A51.214202%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:52 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:51.214202+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:51.214202') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:51.214202') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A52.822809%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:53 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:52.822809+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:52.822809') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:52.822809') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mUPDATE "comments" SET "text" = ?, "updated_at" = ? WHERE "comments"."id" = ?[0m [["text", "Some nice thoughts dude (edited)"], ["updated_at", "2016-08-09 12:52:53.425666"], ["id", 1]]
+ [1m[35m (1.0ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "updated"], ["created_at", "2016-08-09 12:52:53.430013"], ["updated_at", "2016-08-09 12:52:53.430013"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A53.275286%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:54 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:53.275286+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:53.275286') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:53.275286') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/user/articles/298486374/comments/1" for 127.0.0.1 at 2016-08-09 14:52:54 +0200
+Processing by User::CommentsController#show as JSON
+ Parameters: {"article_id"=>"298486374", "id"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 298486374], ["id", 1]]
+ Rendered user/comments/_comment.json.jbuilder (1.1ms)
+ Rendered user/comments/show.json.jbuilder (9.6ms)
+Completed 200 OK in 38ms (Views: 31.5ms | ActiveRecord: 0.6ms)
+ [1m[35m (1.3ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.7ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$ReqdxGw5/5rUTpR1JU.BHO.k8WqR2qA4q2swh8AfLX3KXil1hOQum', '2016-08-09 12:52:54', '2016-08-09 12:52:54', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$HcqZhxUkzBn0CXnEoaMzBevFny9riJRKl6kUWy7Ep8hF.Q1/NoyYa', '2016-08-09 12:52:54', '2016-08-09 12:52:54', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:52:54.000000', '2016-08-09 12:52:54', '2016-08-09 12:52:54', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:52:54', '2016-08-09 12:52:54', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$XOzCejMDWMkoLytrSnhjyePu0aCnE8OFQK89mNGuNLRn2f4pXL2US', '2016-08-02 12:52:54.000000', '2016-08-09 12:52:54', '2016-08-09 12:52:54', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$R2rsp5zDhNJ2HFfMdoDsRu3ND/UifzFQ2wzxVFGSm/8FlzAnI11sm', '2016-08-09 12:52:54', '2016-08-09 12:52:54', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+-------------------------------------------------------------
+User::ArticleShowPageTest: test_should_auto_load_new_comments
+-------------------------------------------------------------
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A54.821297%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:56 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:54.821297+02:00"}
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:54.821297') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A52%3A54.821297%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:52:56 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:52:54.821297+02:00"}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:54.821297') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:52:57 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:52:57 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:52:57 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:52:57 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:52:57 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:52:58 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (2.5ms)
+ Rendered main/articles/index.json.jbuilder (6.3ms)
+Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:58 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:58.066814') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:52:58 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.7ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:52:58 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:52:58.281443') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered user/articles/index.json.jbuilder (5.0ms)
+Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:03.197037') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:03.198299') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.9ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.1ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (4.0ms)
+ Rendered user/articles/show.json.jbuilder (5.2ms)
+Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.5ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.4ms)
+Completed 200 OK in 8ms (Views: 2.2ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:03 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:03.351418') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:03.353319') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A03.354616%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:04 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:03.354616+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:03.354616') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:03.354616') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A04.340891%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:05 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:04.340891+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:04.340891') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:04.340891') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A05.345245%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:06 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:05.345245+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:05.345245') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:05.345245') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A06.337922%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:06.337922+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:06.337922') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:06.337922') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A07.338917%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:08 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:07.338917+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:07.338917') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:07.338917') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 298486374], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:53:08.448604"], ["updated_at", "2016-08-09 12:53:08.448604"]]
+ [1m[35m (1.1ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:53:08.452645"], ["updated_at", "2016-08-09 12:53:08.452645"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A08.340617%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:08.340617+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:08.340617') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:08.340617') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.0ms)
+Started GET "/user/articles/298486374/comments/1" for 127.0.0.1 at 2016-08-09 14:53:09 +0200
+Processing by User::CommentsController#show as JSON
+ Parameters: {"article_id"=>"298486374", "id"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36mComment Load (0.1ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 298486374], ["id", 1]]
+ Rendered user/comments/_comment.json.jbuilder (0.3ms)
+ Rendered user/comments/show.json.jbuilder (1.4ms)
+Completed 200 OK in 7ms (Views: 2.0ms | ActiveRecord: 0.4ms)
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.6ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (1.4ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$5ZMNUTuxRKFPojQgxiGX3ub/2PuErl2fwO/zs2RzzQSRxQ9Ih6lVq', '2016-08-09 12:53:09', '2016-08-09 12:53:09', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$tmEFDNy9mSPWa/d5VPWg3e5Jrl6s2CJfuHaL7eFOQxdWWTNtssE6O', '2016-08-09 12:53:09', '2016-08-09 12:53:09', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:09.000000', '2016-08-09 12:53:09', '2016-08-09 12:53:09', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:09', '2016-08-09 12:53:09', 298486374, 872278135)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$nSFTYsOwN/zsyJkmxsOVHeV99rl0LJJ.y9.cq.zS9Jsv5bVe8MVR2', '2016-08-02 12:53:09.000000', '2016-08-09 12:53:09', '2016-08-09 12:53:09', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$3UD5TJeTiPF51b5MEC5nZunNs8ITRvqJpc7jpAFD4NWlEczNLCKzC', '2016-08-09 12:53:09', '2016-08-09 12:53:09', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+----------------------------------------------------------------------------------------------------
+User::ArticleShowPageTest: test_should_auto_redirect_to_list_of_articles_if_article_has_been_deleted
+----------------------------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:09 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:09 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:09 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:09 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:09 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:09 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (2.3ms)
+ Rendered main/articles/index.json.jbuilder (8.5ms)
+Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:09.632058') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:09 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (1.1ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:09.741234') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.2ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered user/articles/index.json.jbuilder (6.0ms)
+Completed 200 OK in 13ms (Views: 6.1ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:10.208755') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.6ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:10.210535') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.5ms)
+ Rendered user/articles/show.json.jbuilder (2.2ms)
+Completed 200 OK in 10ms (Views: 2.6ms | ActiveRecord: 0.9ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (0.8ms)
+Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:10 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:10.353285') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:10.355461') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A10.356571%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:11 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:10.356571+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:10.356571') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:10.356571') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 298486374]]
+ [1m[36m (1.5ms)[0m [1mcommit transaction[0m
+ [1m[35mUser Load (0.8ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "destroyed"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:11.367825"], ["updated_at", "2016-08-09 12:53:11.367825"]]
+ [1m[36m (0.6ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A11.342188%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:11.342188+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:11.342188') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:11.342188') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles?message=deleted" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Processing by User::ArticlesController#index as HTML
+ Parameters: {"message"=>"deleted"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.5ms)
+ Rendered user/articles/index.json.jbuilder (6.8ms)
+Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:12.536391') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:12.538422') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[36m (2.7ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$E.f4AtunuW3rH4xiVrbAEOmKEhR4NDSR7oR5yqBWwj4lX2OloO7u6', '2016-08-09 12:53:12', '2016-08-09 12:53:12', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$szdAam8vAiEfJK7pxkMgI.x3viqna0QBtus1N.P/4xABK3X8Jbb56', '2016-08-09 12:53:12', '2016-08-09 12:53:12', 298486374)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:12.000000', '2016-08-09 12:53:12', '2016-08-09 12:53:12', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:12', '2016-08-09 12:53:12', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$z3T6bBC.mL3GxLaVw7QcX.SXegZKTRFLuHzEta5PeIdifTZFbev.W', '2016-08-02 12:53:12.000000', '2016-08-09 12:53:12', '2016-08-09 12:53:12', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$6gsqcQlFVg7UX84SLLyHqOSVbrkSL6YncNX52A6SYs8gx6Opo2b3u', '2016-08-09 12:53:12', '2016-08-09 12:53:12', 15595101)
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+---------------------------------------------------------------------------
+User::ArticleShowPageTest: test_should_auto_remove_comment_if_was_destroyed
+---------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:12 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (4.6ms)
+ Rendered main/articles/index.json.jbuilder (8.4ms)
+Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:13.017923') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:13.113412') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered user/articles/index.json.jbuilder (5.8ms)
+Completed 200 OK in 13ms (Views: 5.8ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:13.540362') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:13.541797') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (2.4ms)
+ Rendered user/articles/show.json.jbuilder (3.1ms)
+Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.5ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.2ms)
+Completed 200 OK in 7ms (Views: 1.8ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:13 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:13.685807') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:13.687342') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 298486374], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:53:13.693196"], ["updated_at", "2016-08-09 12:53:13.693196"]]
+ [1m[35m (1.1ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:53:13.697353"], ["updated_at", "2016-08-09 12:53:13.697353"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A13.688427%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:14 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:13.688427+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:13.688427') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:13.688427') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles/298486374/comments/1" for 127.0.0.1 at 2016-08-09 14:53:14 +0200
+Processing by User::CommentsController#show as JSON
+ Parameters: {"article_id"=>"298486374", "id"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36mComment Load (0.1ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 298486374], ["id", 1]]
+ Rendered user/comments/_comment.json.jbuilder (0.3ms)
+ Rendered user/comments/show.json.jbuilder (0.8ms)
+Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:53:14.736337"], ["updated_at", "2016-08-09 12:53:14.736337"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A14.671326%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:14.671326+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:14.671326') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:14.671326') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A15.693774%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:15.693774+02:00"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:15.693774') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:15.693774') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A16.679294%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:17 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:16.679294+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:16.679294') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:16.679294') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A17.671116%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:18 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:17.671116+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:17.671116') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:17.671116') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A18.679790%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:18.679790+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:18.679790') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:18.679790') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A19.675711%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:20 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:19.675711+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:19.675711') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:19.675711') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$.IMrr6MSdBCn870mEnt59.kLocY8vChIz1db3agem0K2cC4LrRyX.', '2016-08-09 12:53:20', '2016-08-09 12:53:20', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$SdNf1YErdkmc.qvutW4.euOPxxj4nbWMmGU2ID8.LZ/mf7bu3WfB2', '2016-08-09 12:53:20', '2016-08-09 12:53:20', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:20.000000', '2016-08-09 12:53:20', '2016-08-09 12:53:20', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:20', '2016-08-09 12:53:20', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$zFHt9RB5TNySn1FlKZdlLuRyaqKFy42g3sVgf9XDi45Zbk/ThHSQO', '2016-08-02 12:53:20.000000', '2016-08-09 12:53:20', '2016-08-09 12:53:20', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$6UUGkLhlPhPB3juRrmc77eTwa2PctvurVccC16/ESMhIRFBeOfBjC', '2016-08-09 12:53:20', '2016-08-09 12:53:20', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+------------------------------------------------------
+User::ArticleShowPageTest: test_should_publish_article
+------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:20 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:20 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:20 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:20 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:20 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:20 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (3.9ms)
+ Rendered main/articles/index.json.jbuilder (7.5ms)
+Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:21.011484') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:21.129472') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered user/articles/index.json.jbuilder (5.1ms)
+Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:21.617772') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:21.619126') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by User::ArticlesController#show as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/show.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.6ms)
+ Rendered user/articles/show.json.jbuilder (2.5ms)
+Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 0.4ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (0.9ms)
+Completed 200 OK in 6ms (Views: 1.3ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:21.771705') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:21.773142') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started PUT "/user/articles/298486374/publish" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by User::ArticlesController#publish as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "articles" SET "published_at" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["published_at", "2016-08-09 12:53:21.839379"], ["updated_at", "2016-08-09 12:53:21.840185"], ["id", 298486374]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("obj_class", "obj_id", "event", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["obj_class", "Article"], ["obj_id", 298486374], ["event", "published"], ["data", "{\"id\":298486374}"], ["created_at", "2016-08-09 12:53:21.844201"], ["updated_at", "2016-08-09 12:53:21.844201"]]
+ [1m[35m (0.7ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:21.848083"], ["updated_at", "2016-08-09 12:53:21.848083"]]
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+Completed 200 OK in 17ms (Views: 0.3ms | ActiveRecord: 4.7ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$KAXwIRofdFLyFYva0z1bPefPzHK4JZeGdFqDOYOEd9iG2TEJmBwQi', '2016-08-09 12:53:21', '2016-08-09 12:53:21', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$Ymjd8fOzKFCDeGGgl5zCtODxg8x79Om8natHaoXfXFq8wR13k7Lf6', '2016-08-09 12:53:21', '2016-08-09 12:53:21', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:21.000000', '2016-08-09 12:53:21', '2016-08-09 12:53:21', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:21', '2016-08-09 12:53:21', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$qldNbLMfBiSO7hykV2qQDubOU.yIG/A1621cPSq63.gKU44R35Mk.', '2016-08-02 12:53:21.000000', '2016-08-09 12:53:21', '2016-08-09 12:53:21', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$d6YsNk/rVq.vRmI0NCKAyu2L247CX.Xu3NnGRWdfu/7vQaAE4EgJG', '2016-08-09 12:53:21', '2016-08-09 12:53:21', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+----------------------------------------------------------------------------------------------------
+User::ArticleEditPageTest: test_should_auto_redirect_to_list_of_articles_if_article_has_been_deleted
+----------------------------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:21 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (6.7ms)
+Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:22.085567') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:22.087417') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:22.183423') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:22.184574') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.0ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.8ms)
+ Rendered user/articles/index.json.jbuilder (8.2ms)
+Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:22.619221') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:22.621023') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"mark\":\"1470747202.727539\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:22.728293"], ["updated_at", "2016-08-09 12:53:22.728293"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ Rendered user/articles/_form.html.erb (4.1ms)
+ Rendered user/articles/edit.html.erb within layouts/application (10.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 21ms (Views: 16.1ms | ActiveRecord: 1.2ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.4ms)
+ Rendered user/articles/show.json.jbuilder (1.9ms)
+Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.1ms)
+Completed 200 OK in 6ms (Views: 1.6ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:22 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:22.784566') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:22.785653') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
+ [1m[35m (0.3ms)[0m begin transaction
+ [1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 298486374]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "destroyed"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:23.258171"], ["updated_at", "2016-08-09 12:53:23.258171"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A22.786704%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:23 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:22.786704+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:22.786704') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:22.786704') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles?message=deleted" for 127.0.0.1 at 2016-08-09 14:53:23 +0200
+Processing by User::ArticlesController#index as HTML
+ Parameters: {"message"=>"deleted"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:23 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:23 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:23 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:23 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:23 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered user/articles/index.json.jbuilder (3.3ms)
+Completed 200 OK in 9ms (Views: 3.5ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:23 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:23.938091') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:23.939327') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$oCvd2gYRDvjHGaPVaU0Tte1UhwLbtYgC6pcZEaMkYKHuzUI8aXqdK', '2016-08-09 12:53:24', '2016-08-09 12:53:24', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$AD2CQMq/vxN3Ct1BgtgV4uTiUtLMcKwoR8lUef9U7Fwu8a6mBG5sG', '2016-08-09 12:53:24', '2016-08-09 12:53:24', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:24.000000', '2016-08-09 12:53:24', '2016-08-09 12:53:24', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:24', '2016-08-09 12:53:24', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$Q/32Zzivx9GdlTYEE6s4JeHwyZCKL.FhqKQDKSK11gXwfuzvlwktq', '2016-08-02 12:53:24.000000', '2016-08-09 12:53:24', '2016-08-09 12:53:24', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$AW6uW1ZNEWKKS4VG3rN2MOxuBKtUbKNhbvcyEF3m3rtbXoKyW/0fq', '2016-08-09 12:53:24', '2016-08-09 12:53:24', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+-------------------------------------------------------------
+User::ArticleEditPageTest: test_should_auto_load_new_comments
+-------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:24 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:24 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:24 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:24 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:24 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:24 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.4ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (4.8ms)
+Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:24 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:24.436878') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:24.438600') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:24 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:24 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:24.544659') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:24.545815') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.9ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:53:24 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:53:24 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:25 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:25 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:25 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:25 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:25 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.2ms)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.2ms)
+ Rendered user/articles/index.json.jbuilder (10.5ms)
+Completed 200 OK in 14ms (Views: 10.5ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:25 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:25.259302') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:25.261170') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:53:25 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"mark\":\"1470747205.561771\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:25.562970"], ["updated_at", "2016-08-09 12:53:25.562970"]]
+ [1m[35m (1.8ms)[0m commit transaction
+ Rendered user/articles/_form.html.erb (4.9ms)
+ Rendered user/articles/edit.html.erb within layouts/application (5.7ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 20ms (Views: 9.8ms | ActiveRecord: 2.7ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:25 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (2.1ms)
+ Rendered user/articles/show.json.jbuilder (5.0ms)
+Completed 200 OK in 13ms (Views: 5.6ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:25 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.3ms)
+Completed 200 OK in 8ms (Views: 2.0ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:25 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:25.647000') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:25.648695') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A25.649999%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:26 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:25.649999+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:25.649999') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:25.649999') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A26.631261%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:26.631261+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:26.631261') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:26.631261') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A27.640001%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:28 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:27.640001+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:27.640001') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:27.640001') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A28.631495%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:29 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:28.631495+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:28.631495') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:28.631495') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A29.632430%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:30 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:29.632430+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:29.632430') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:29.632430') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 298486374], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:53:30.734614"], ["updated_at", "2016-08-09 12:53:30.734614"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:53:30.738255"], ["updated_at", "2016-08-09 12:53:30.738255"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A30.635144%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:31 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:30.635144+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:30.635144') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:30.635144') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/user/articles/298486374/comments/1" for 127.0.0.1 at 2016-08-09 14:53:31 +0200
+Processing by User::CommentsController#show as JSON
+ Parameters: {"article_id"=>"298486374", "id"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36mComment Load (0.1ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 298486374], ["id", 1]]
+ Rendered user/comments/_comment.json.jbuilder (0.2ms)
+ Rendered user/comments/show.json.jbuilder (0.8ms)
+Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.3ms)
+ [1m[35m (1.4ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$vjVaDpabEI/jgL/iTD9IbubDm7ji3r63jm0zeG4gOTbRYIv08Ilqy', '2016-08-09 12:53:31', '2016-08-09 12:53:31', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$6/pnnxV1MkQhZDpKkH.preHVWJLWaV3O2dXzorCB6kij7ZJTw0bny', '2016-08-09 12:53:31', '2016-08-09 12:53:31', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:31.000000', '2016-08-09 12:53:31', '2016-08-09 12:53:31', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:31', '2016-08-09 12:53:31', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$tyvKLt9CgXQ4cOUFw1zfeOVk6tqnKwFsZUY/T2O7MSUsu5npSLlWC', '2016-08-02 12:53:31.000000', '2016-08-09 12:53:31', '2016-08-09 12:53:31', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$Idj54NU6QlmOZ7dNs5adiObucM7WoZVoPFaj9nz3h6GcupLekqjsG', '2016-08-09 12:53:31', '2016-08-09 12:53:31', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+---------------------------------------------------------------------------
+User::ArticleEditPageTest: test_should_auto_remove_comment_if_was_destroyed
+---------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:31 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:31 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered main/articles/index.json.jbuilder (4.4ms)
+Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:32.123962') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:32.125183') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:32.240273') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:32.241364') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered user/articles/index.json.jbuilder (7.9ms)
+Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:32.696628') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:32.698229') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms)
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"mark\":\"1470747212.8152509\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:32.816048"], ["updated_at", "2016-08-09 12:53:32.816048"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ Rendered user/articles/_form.html.erb (1.7ms)
+ Rendered user/articles/edit.html.erb within layouts/application (2.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 1.6ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.9ms)
+ Rendered user/articles/show.json.jbuilder (2.7ms)
+Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.6ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (0.9ms)
+Completed 200 OK in 6ms (Views: 1.3ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:32.870423') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:32.871896') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 298486374], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:53:32.908749"], ["updated_at", "2016-08-09 12:53:32.908749"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:53:32.913141"], ["updated_at", "2016-08-09 12:53:32.913141"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A32.873010%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:33 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:32.873010+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:32.873010') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:32.873010') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
+Started GET "/user/articles/298486374/comments/1" for 127.0.0.1 at 2016-08-09 14:53:33 +0200
+Processing by User::CommentsController#show as JSON
+ Parameters: {"article_id"=>"298486374", "id"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36mComment Load (0.1ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 298486374], ["id", 1]]
+ Rendered user/comments/_comment.json.jbuilder (0.3ms)
+ Rendered user/comments/show.json.jbuilder (0.9ms)
+Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:53:33.956147"], ["updated_at", "2016-08-09 12:53:33.956147"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A33.858017%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:34 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:33.858017+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:33.858017') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:33.858017') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A34.857049%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:34.857049+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:34.857049') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:34.857049') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 12ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A35.865444%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:36 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:35.865444+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:35.865444') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:35.865444') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A36.864925%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:37 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:36.864925+02:00"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:36.864925') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:36.864925') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A37.861291%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:38 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:37.861291+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:37.861291') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:37.861291') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A38.862174%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:39 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:38.862174+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:38.862174') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:38.862174') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+ [1m[35m (0.9ms)[0m DELETE FROM "articles";
+ [1m[36m (0.5ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$82thcpyuc6axc66UlZBnvOsmnK1DI/mdNoFtjDXf2832yUEC.ceN2', '2016-08-09 12:53:40', '2016-08-09 12:53:40', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$hOSDnc.IGseknmTwPAPsAekx0b8AOE1cmtB97Jj6wuc3BVqqJJdgi', '2016-08-09 12:53:40', '2016-08-09 12:53:40', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:40.000000', '2016-08-09 12:53:40', '2016-08-09 12:53:40', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:40', '2016-08-09 12:53:40', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$DPA8ipfAk/bRWFfVM5lEUeiHdkt8OuwrizwXb8pZ657EOMhYbAK7G', '2016-08-02 12:53:40.000000', '2016-08-09 12:53:40', '2016-08-09 12:53:40', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$5tQrOoC3pXffVE41r68P7uOiIf91AeQqD0AzLgOfURBmqJ1O19wTC', '2016-08-09 12:53:40', '2016-08-09 12:53:40', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+---------------------------------------------------------------------------------------------
+User::ArticleEditPageTest: test_should_allow_to_update_fields_in_order_to_have_updated_values
+---------------------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered main/articles/index.json.jbuilder (4.7ms)
+Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:40.176282') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:40.177514') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.6ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:40.288500') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:40.289704') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.8ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.2ms)
+ Rendered user/articles/index.json.jbuilder (8.7ms)
+Completed 200 OK in 16ms (Views: 8.8ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:40.760130') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:40.762250') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"mark\":\"1470747220.871294\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:40.872103"], ["updated_at", "2016-08-09 12:53:40.872103"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ Rendered user/articles/_form.html.erb (2.7ms)
+ Rendered user/articles/edit.html.erb within layouts/application (3.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 5.6ms | ActiveRecord: 1.7ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (2.0ms)
+ Rendered user/articles/show.json.jbuilder (3.1ms)
+Completed 200 OK in 10ms (Views: 4.2ms | ActiveRecord: 0.5ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.1ms)
+Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:40 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:40.928554') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:40.930531') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.8ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mUPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ?[0m [["title", "WiAR"], ["text", "Lorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum II"], ["updated_at", "2016-08-09 12:53:41.442226"], ["id", 298486374]]
+ [1m[35m (0.7ms)[0m commit transaction
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:41.448328"], ["updated_at", "2016-08-09 12:53:41.448328"]]
+ [1m[35m (0.7ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A40.931690%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:41 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:40.931690+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:40.931690') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:40.931690') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:41 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.5ms)
+ Rendered user/articles/show.json.jbuilder (2.1ms)
+Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.4ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.3ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$1/TOBtLIGn.SwBPD9b0EF.hGGwOmy4qJTBjMQs514eWHWONYO8QN2', '2016-08-09 12:53:42', '2016-08-09 12:53:42', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$M81Uo30SqqxQrKxQ.K6WBuaVbTOQ6fo9vzyn4V4uTrbDPlmZ8hCxS', '2016-08-09 12:53:42', '2016-08-09 12:53:42', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:42.000000', '2016-08-09 12:53:42', '2016-08-09 12:53:42', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:42', '2016-08-09 12:53:42', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$XUZXAhIL08uTGiPbi0vAr.6D7XtDM4Hmos04I1z7ei.6LCyI4wCem', '2016-08-02 12:53:42.000000', '2016-08-09 12:53:42', '2016-08-09 12:53:42', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$CJm/lMc1Hz.x8jHvVPSSO.r9pP4a/F/Lbpf1r7JN9TTE9oQz6YGca', '2016-08-09 12:53:42', '2016-08-09 12:53:42', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+--------------------------------------------------------------
+User::ArticleEditPageTest: test_should_show_info_about_editing
+--------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.5ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (7.4ms)
+Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:42.335942') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:42.337360') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:42.436127') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:42.437309') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.6ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.8ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.9ms)
+ Rendered user/articles/index.json.jbuilder (6.5ms)
+Completed 200 OK in 13ms (Views: 6.7ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:42.875882') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:42.877182') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:53:42 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"mark\":\"1470747222.989766\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:42.990974"], ["updated_at", "2016-08-09 12:53:42.990974"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ Rendered user/articles/_form.html.erb (2.1ms)
+ Rendered user/articles/edit.html.erb within layouts/application (2.6ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 13ms (Views: 5.6ms | ActiveRecord: 1.6ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:43 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (2.6ms)
+ Rendered user/articles/show.json.jbuilder (3.3ms)
+Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.4ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:43 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (1.6ms)
+Completed 200 OK in 8ms (Views: 2.3ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:43 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:43.045309') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:43.046738') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"mark\":\"1470747223.564399\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:43.567031"], ["updated_at", "2016-08-09 12:53:43.567031"]]
+ [1m[35m (2.6ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A43.047860%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:44 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:43.047860+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:43.047860') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:43.047860') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+ [1m[35m (2.6ms)[0m DELETE FROM "articles";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (3.0ms)[0m DELETE FROM "admins";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$MjbomF9dNJJK9GaWbalRHeU4ZTnyUYknL6fc01u5B8BGpY5XhPYfu', '2016-08-09 12:53:44', '2016-08-09 12:53:44', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$OSgJvRuOLPt/Xvnlb/2Rd.9cRrOQKNDrJOLgHVX8apsMJm8jY2bdq', '2016-08-09 12:53:44', '2016-08-09 12:53:44', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:44.000000', '2016-08-09 12:53:44', '2016-08-09 12:53:44', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:44', '2016-08-09 12:53:44', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$LRMkzPdRepXU8vrRH0.tBu9CxKtwklg/VyhiRk6RwfMzs.RbHQ5om', '2016-08-02 12:53:44.000000', '2016-08-09 12:53:44', '2016-08-09 12:53:44', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$AoM5ZD4ECps7BhimMN.lq.VX3LQi1aAyw1DcE96JZkeQjpA7Pb4D6', '2016-08-09 12:53:44', '2016-08-09 12:53:44', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+----------------------------------------------------------
+User::ArticleEditPageTest: test_should_auto_update_comment
+----------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:44 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.6ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:44 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:44 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:44 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:44 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:44 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (3.8ms)
+ Rendered main/articles/index.json.jbuilder (14.2ms)
+Completed 200 OK in 18ms (Views: 14.6ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:44 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:44.787716') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.7ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:44.791910') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:44 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:44 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:44.961970') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:44.963133') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (15.9ms)
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.2ms)
+ Rendered user/articles/index.json.jbuilder (21.6ms)
+Completed 200 OK in 28ms (Views: 21.6ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:45.607861') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:45.610276') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.1ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"mark\":\"1470747225.791826\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:45.794520"], ["updated_at", "2016-08-09 12:53:45.794520"]]
+ [1m[36m (1.6ms)[0m [1mcommit transaction[0m
+ Rendered user/articles/_form.html.erb (3.6ms)
+ Rendered user/articles/edit.html.erb within layouts/application (5.0ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 298486374], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:53:45.809196"], ["updated_at", "2016-08-09 12:53:45.809196"]]
+Completed 200 OK in 24ms (Views: 13.6ms | ActiveRecord: 2.5ms)
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:53:45.817657"], ["updated_at", "2016-08-09 12:53:45.817657"]]
+ [1m[36m (1.2ms)[0m [1mcommit transaction[0m
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.6ms)
+ Rendered user/articles/show.json.jbuilder (2.4ms)
+Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.5ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ Rendered user/comments/_comment.json.jbuilder (0.4ms)
+ Rendered user/comments/index.json.jbuilder (2.1ms)
+Completed 200 OK in 13ms (Views: 2.8ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:45.869731') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:45.870939') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"mark\":\"1470747225.896696\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:45.897661"], ["updated_at", "2016-08-09 12:53:45.897661"]]
+ [1m[35m (1.2ms)[0m commit transaction
+ Rendered user/articles/_form.html.erb (3.6ms)
+ Rendered user/articles/edit.html.erb within layouts/application (6.9ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 28ms (Views: 19.8ms | ActiveRecord: 1.9ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:45 +0200
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:46 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (3.6ms)
+ Rendered user/articles/show.json.jbuilder (4.7ms)
+Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 0.5ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:46 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0[0m [["article_id", 298486374]]
+ Rendered user/comments/_comment.json.jbuilder (0.6ms)
+ Rendered user/comments/index.json.jbuilder (2.7ms)
+Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:46 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:46.064266') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:46.065405') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A46.066216%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:47 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:46.066216+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:46.066216') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:46.066216') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A47.053648%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:48 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:47.053648+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:47.053648') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:47.053648') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A48.056143%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:49 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:48.056143+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:48.056143') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:48.056143') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A49.055492%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:50 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:49.055492+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:49.055492') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:49.055492') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A50.073413%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:51 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:50.073413+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:50.073413') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:50.073413') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "comments" SET "text" = ?, "updated_at" = ? WHERE "comments"."id" = ?[0m [["text", "Some nice thoughts dude (edited)"], ["updated_at", "2016-08-09 12:53:51.199031"], ["id", 1]]
+ [1m[35m (0.7ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":298486374,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "updated"], ["created_at", "2016-08-09 12:53:51.202307"], ["updated_at", "2016-08-09 12:53:51.202307"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A51.076381%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:51.076381+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:51.076381') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:51.076381') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles/298486374/comments/1" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Processing by User::CommentsController#show as JSON
+ Parameters: {"article_id"=>"298486374", "id"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? AND "comments"."id" = ? LIMIT 1[0m [["article_id", 298486374], ["id", 1]]
+ Rendered user/comments/_comment.json.jbuilder (0.4ms)
+ Rendered user/comments/show.json.jbuilder (1.2ms)
+Completed 200 OK in 7ms (Views: 2.3ms | ActiveRecord: 0.5ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$0oaDWBg/aAl.A/ood7.dM.RvK7Jluly/peUEmtE2t14X9ififqXRS', '2016-08-09 12:53:52', '2016-08-09 12:53:52', 980190962)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$AaWGLSPdnCHNiMsUjZOwRe/Ha2mkbvgfXaVBeBwiHn9BjtlDJqd8O', '2016-08-09 12:53:52', '2016-08-09 12:53:52', 298486374)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:52.000000', '2016-08-09 12:53:52', '2016-08-09 12:53:52', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:52', '2016-08-09 12:53:52', 298486374, 872278135)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$H.k5YHW7DPUxmiX102Djcu/iOQHgmn8IEd0msSFIhqzzWFQbOq/VO', '2016-08-02 12:53:52.000000', '2016-08-09 12:53:52', '2016-08-09 12:53:52', 872278135)
+ [1m[36mFixture Insert (2.2ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$TdiQFrOcktvdo1itCG6EWOiG8stwrZsggaekSKUyb5nIo1A8NAHP.', '2016-08-09 12:53:52', '2016-08-09 12:53:52', 15595101)[0m
+ [1m[35m (4.7ms)[0m commit transaction
+-----------------------------------------------------
+User::ArticleEditPageTest: test_should_update_article
+-----------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (2.5ms)
+ Rendered main/articles/index.json.jbuilder (12.5ms)
+Completed 200 OK in 16ms (Views: 12.3ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:52.431165') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:52.432569') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:52.567753') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:52.568867') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:53:52 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.5ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (0.9ms)
+ Rendered user/articles/index.json.jbuilder (4.5ms)
+Completed 200 OK in 10ms (Views: 4.3ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:53.161039') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:53.162583') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+Started GET "/user/articles/298486374/edit" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Processing by User::ArticlesController#edit as HTML
+ Parameters: {"id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"mark\":\"1470747233.3291059\",\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updating"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:53.330106"], ["updated_at", "2016-08-09 12:53:53.330106"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ Rendered user/articles/_form.html.erb (2.6ms)
+ Rendered user/articles/edit.html.erb within layouts/application (3.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 1.5ms)
+Started GET "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article.json.jbuilder (1.3ms)
+ Rendered user/articles/show.json.jbuilder (2.3ms)
+Completed 200 OK in 8ms (Views: 2.9ms | ActiveRecord: 0.4ms)
+Started GET "/user/articles/298486374/comments?page=1" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Processing by User::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 10 OFFSET 0 [["article_id", 298486374]]
+ Rendered user/comments/index.json.jbuilder (0.9ms)
+Completed 200 OK in 6ms (Views: 1.6ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:53.383354') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:53.384855') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started PUT "/user/articles/298486374" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Processing by User::ArticlesController#update as JSON
+ Parameters: {"article"=>{"title"=>"What is Active Record? (updated)", "text"=>"Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.", "created_at"=>"Tue Aug 09 2016 14:53:52 GMT+0200 (CEST)", "updated_at"=>"Tue Aug 09 2016 14:53:52 GMT+0200 (CEST)", "comments_count"=>"0", "published_at"=>"", "published"=>"false", "admin_review"=>"", "admin_rate"=>"", "category_id"=>"", "admin_review_started_at"=>""}, "id"=>"298486374"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 298486374]]
+Unpermitted parameters: created_at, updated_at, comments_count, published_at, published, admin_review, admin_rate, category_id, admin_review_started_at
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "articles" SET "title" = ?, "updated_at" = ? WHERE "articles"."id" = ?[0m [["title", "What is Active Record? (updated)"], ["updated_at", "2016-08-09 12:53:53.613500"], ["id", 298486374]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:53:53.617305"], ["updated_at", "2016-08-09 12:53:53.617305"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 2.7ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$IfJ9PGqnynHLTFLU/2gSM.ka4YpI8XP9TxSvZ22V9sJd.KkrDgXTW', '2016-08-09 12:53:53', '2016-08-09 12:53:53', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$xhmmhVbOMuybMGSVoayUnOFaHyTLhJww58tQdp8fLLewUIvCshOZC', '2016-08-09 12:53:53', '2016-08-09 12:53:53', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:53.000000', '2016-08-09 12:53:53', '2016-08-09 12:53:53', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:53', '2016-08-09 12:53:53', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$cHaQCV0zjjeD75s7EOFYKOTZtip3thJN/fbHNsJGX8F096ojrxs22', '2016-08-02 12:53:53.000000', '2016-08-09 12:53:53', '2016-08-09 12:53:53', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$cD4YXMbCjIYPOv2/b9wxkuAl991NeRg8QW375I0RBMoCOufRUvFx2', '2016-08-09 12:53:53', '2016-08-09 12:53:53', 15595101)[0m
+ [1m[35m (0.7ms)[0m commit transaction
+---------------------------------------------
+Admin::UsersSectionTest: test_confirming_user
+---------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.4ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:53 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:53.813383') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:53.814636') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mAdmin Load (0.3ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:52002/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
+ [1m[35mUser Load (0.6ms)[0m SELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/index.json.jbuilder (3.4ms)
+Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.241640') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.242789') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.244140') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 15595101]]
+Started GET "/admin/users/15595101/edit" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Admin::UsersController#edit as HTML
+ Parameters: {"id"=>"15595101"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 15595101]]
+ [1m[36mConnection Load (0.3ms)[0m [1mSELECT "connections".* FROM "connections" WHERE "connections"."obj_class" = ? AND "connections"."obj_id" = ? ORDER BY "connections"."id" DESC LIMIT 1[0m [["obj_class", "User"], ["obj_id", 15595101]]
+ Rendered admin/users/_form.html.erb (18.6ms)
+ Rendered admin/users/edit.html.erb within layouts/application (22.7ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 36ms (Views: 29.1ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.413035') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.414243') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.415195') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)
+Started PUT "/admin/users/15595101" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Admin::UsersController#update as JSON
+ Parameters: {"user"=>{"email"=>"jane@example.com", "username"=>"jane", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "confirmed"=>"1", "created_at"=>"", "updated_at"=>""}, "id"=>"15595101"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 15595101]]
+Unpermitted parameters: created_at, updated_at
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'jane@example.com' AND "users"."id" != 15595101) LIMIT 1
+ [1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE ("users"."username" = 'jane' AND "users"."id" != 15595101) LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "users"."id" = ? [["confirmed_at", "2016-08-09 12:53:54.627515"], ["updated_at", "2016-08-09 12:53:54.642051"], ["id", 15595101]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mConnection Load (0.1ms)[0m SELECT "connections".* FROM "connections" WHERE "connections"."obj_class" = ? AND "connections"."obj_id" = ? ORDER BY "connections"."id" DESC LIMIT 1 [["obj_class", "User"], ["obj_id", 15595101]]
+Completed 200 OK in 23ms (Views: 0.2ms | ActiveRecord: 2.1ms)
+Started GET "/admin/users" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0
+ Rendered admin/users/_user.json.jbuilder (0.4ms)
+ Rendered admin/users/_user.json.jbuilder (0.4ms)
+ Rendered admin/users/index.json.jbuilder (6.6ms)
+Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.756313') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.757454') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.758285') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$EMKNT1T8x081ONCa/PEGWOxvVL/1zFeSo0x9gTPcNf5bSelpZJDRa', '2016-08-09 12:53:54', '2016-08-09 12:53:54', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$gVCDE2hrmP5upZubEW2/ueVh5PHx6ofNaOHqBezcMZdE8uIJ2SfYe', '2016-08-09 12:53:54', '2016-08-09 12:53:54', 298486374)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:54.000000', '2016-08-09 12:53:54', '2016-08-09 12:53:54', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:54', '2016-08-09 12:53:54', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$It8A5.0GWRENvHdWT1z5sedaJD1A272OQR7g.tPYYgqBVuzABNYJ6', '2016-08-02 12:53:54.000000', '2016-08-09 12:53:54', '2016-08-09 12:53:54', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$e34AZcyh/JpOedoqRAshwuiIl7oDeO63iHv/c2LPxCPOVyOTi0jfO', '2016-08-09 12:53:54', '2016-08-09 12:53:54', 15595101)[0m
+ [1m[35m (1.1ms)[0m commit transaction
+----------------------------------------
+Admin::UsersSectionTest: test_signing_in
+----------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:54 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.982866') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.984345') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:54.985326') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:52002/admin
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0[0m
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/index.json.jbuilder (2.4ms)
+Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:55.413694') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:55.415172') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:55.416658') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.4ms)
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$Ah3rxLBSSyRmOfODhC6EEuPhmQvJzBh1FGozNjzC00z3EWVve9z86', '2016-08-09 12:53:55', '2016-08-09 12:53:55', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$x8a.D9WRnVMDD7RqZWMkuuaClTYUrksDhq.R1DUEM/tRgz2atIM3q', '2016-08-09 12:53:55', '2016-08-09 12:53:55', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:55.000000', '2016-08-09 12:53:55', '2016-08-09 12:53:55', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:55', '2016-08-09 12:53:55', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$hHnGfvifiinIi/nIAcrrG.thUiNs8nOOZJKWTetL3TMqQc5zgB.Fi', '2016-08-02 12:53:55.000000', '2016-08-09 12:53:55', '2016-08-09 12:53:55', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$IYlL6Md5N3hyeMnBFuyg6.ifBRVB5dt8KtM2iUZ1gUm64bxDHvyiW', '2016-08-09 12:53:55', '2016-08-09 12:53:55', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+------------------------------------------------------------------
+Admin::UsersSectionTest: test_should_auto_load_recently_added_user
+------------------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:55 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:55.710270') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:55.711398') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:55.712288') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:53:56 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:52002/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:53:56 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:56 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:56 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:56 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:56 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:53:56 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
+ [1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/_user.json.jbuilder (0.2ms)
+ Rendered admin/users/index.json.jbuilder (5.1ms)
+Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:56 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:56.144385') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:56.145466') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:56.146286') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'david@example.com' LIMIT 1[0m
+ [1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."username" = 'david' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "username", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "david@example.com"], ["username", "david"], ["password_digest", "$2a$04$ZdjiLEAU4Jwy4buPnYTvHeOwM4TE7jJgZ6Nw5gV4IaVhlgCLWMNxO"], ["created_at", "2016-08-09 12:53:56.166326"], ["updated_at", "2016-08-09 12:53:56.166326"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":872278136}"], ["obj_class", "User"], ["obj_id", 872278136], ["event", "created"], ["recipient_class", "Admin"], ["created_at", "2016-08-09 12:53:56.170504"], ["updated_at", "2016-08-09 12:53:56.170504"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A56.147204%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:56.147204+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:56.147204') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:56.147204') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:56.147204') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.1ms)
+Started GET "/admin/users/872278136" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Processing by Admin::UsersController#show as JSON
+ Parameters: {"id"=>"872278136"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278136]]
+ Rendered admin/users/_user.json.jbuilder (0.6ms)
+ Rendered admin/users/show.json.jbuilder (2.6ms)
+Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.2ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.6ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$cQYlPEZkxnEGH1FtcS8cK.49c7ifuqazgXu26u86T34m6uTp.GkzO', '2016-08-09 12:53:57', '2016-08-09 12:53:57', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$U37LgQN6aTPTobUi5BaukOH5dxfTTvmUCIlPhui91uqBJ0pNaqquu', '2016-08-09 12:53:57', '2016-08-09 12:53:57', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:57.000000', '2016-08-09 12:53:57', '2016-08-09 12:53:57', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:57', '2016-08-09 12:53:57', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$3aMsza6Qp.QAlyUdZ.8ZLOieTHQEFrqKp6rJAVQNEEQMrxmZdqDf2', '2016-08-02 12:53:57.000000', '2016-08-09 12:53:57', '2016-08-09 12:53:57', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$o70wZIBFzn6GRJasSGyRC.MWh6bc.AcTfI3vNzrAvXqS77Q5EuWSG', '2016-08-09 12:53:57', '2016-08-09 12:53:57', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+----------------------------------------------------------------------
+Main::MainPageTest: test_should_load_another_page_of_articles_on_click
+----------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (4.4ms)
+ Rendered main/articles/index.json.jbuilder (7.9ms)
+Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:57.667063') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:57.669008') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:57.670381') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["title", "Why Associations?"], ["text", "Why do we need associations between models? Because they make common operations simpler and easier in your code. For example, consider a simple Rails application that includes a model for customers and a model for orders."], ["published_at", "2016-08-07 12:53:57.685617"], ["user_id", 872278135], ["created_at", "2016-08-09 12:53:57.687058"], ["updated_at", "2016-08-09 12:53:57.687058"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 15595101]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["title", "Form Helpers"], ["text", "Forms in web applications are an essential interface for user input. However, form markup can quickly become tedious to write and maintain because of the need to handle form control naming and its numerous attributes."], ["published_at", "2016-08-06 12:53:57.691424"], ["user_id", 15595101], ["created_at", "2016-08-09 12:53:57.692925"], ["updated_at", "2016-08-09 12:53:57.692925"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Active Support Core Extensions"], ["text", "Active Support is the Ruby on Rails component responsible for providing Ruby language extensions, utilities, and other transversal stuff."], ["published_at", "2016-08-05 12:53:57.695635"], ["user_id", 15595101], ["created_at", "2016-08-09 12:53:57.696799"], ["updated_at", "2016-08-09 12:53:57.696799"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["title", "Configuring Rails Components"], ["text", "In general, the work of configuring Rails means configuring the components of Rails, as well as configuring Rails itself. The configuration file config/application.rb and environment-specific configuration files (such as config/environments/production.rb) allow you to specify the various settings that you want to pass down to all of the components."], ["published_at", "2016-08-04 12:53:57.699191"], ["user_id", 872278135], ["created_at", "2016-08-09 12:53:57.701691"], ["updated_at", "2016-08-09 12:53:57.701691"]]
+ [1m[35m (0.9ms)[0m commit transaction
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135, 15595101)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190963]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.3ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190964]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.2ms)
+ Rendered main/articles/index.json.jbuilder (11.4ms)
+Completed 200 OK in 14ms (Views: 10.9ms | ActiveRecord: 1.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.7ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:57.848041') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:57.850362') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:57.851926') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.6ms)
+Started GET "/articles?page=2" for 127.0.0.1 at 2016-08-09 14:53:57 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"2"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 3
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (15595101, 872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190965]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190966]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.3ms)
+ Rendered main/articles/index.json.jbuilder (5.8ms)
+Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 1.0ms)
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$I7MYFplpafphobNCXO45CunIpYskJpjQbUa6gWVH6wSPRbbvo1bmK', '2016-08-09 12:53:58', '2016-08-09 12:53:58', 980190962)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$Xpke1k3aRRJ3RhoZPYqwPOSG4oqR2B/Y4INdZJHS5f/NEiQeUcep.', '2016-08-09 12:53:58', '2016-08-09 12:53:58', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:58.000000', '2016-08-09 12:53:58', '2016-08-09 12:53:58', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:58', '2016-08-09 12:53:58', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$Nh/XDi4C9qDOF0yCQg2S2eGnZyftq3n5mi52aWunyfEhFuRdzoYf2', '2016-08-02 12:53:58.000000', '2016-08-09 12:53:58', '2016-08-09 12:53:58', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$ysGN1W7M6hoUnWeh/qkAq.HTi88.OCSQwYok5ELAG9Gf9vpZnRtf6', '2016-08-09 12:53:58', '2016-08-09 12:53:58', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+------------------------------------------------------------------------
+Main::MainPageTest: test_should_update_title_of_recently_updated_article
+------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:58 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (10.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:58 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:58 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:58 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:58 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:58 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (3.9ms)
+ Rendered main/articles/index.json.jbuilder (7.8ms)
+Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:58 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:58.304244') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:58.305437') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:58.306416') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "articles" SET "title" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["title", "AGtTRA"], ["updated_at", "2016-08-09 12:53:58.324662"], ["id", 980190962]]
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "updated"], ["created_at", "2016-08-09 12:53:58.328727"], ["updated_at", "2016-08-09 12:53:58.328727"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A58.307183%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:53:59 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:58.307183+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:58.307183') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:58.307183') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:58.307183') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.2ms)
+Started GET "/articles/980190962?abbr=true" for 127.0.0.1 at 2016-08-09 14:53:59 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"980190962"}
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.8ms)
+ Rendered main/articles/show.json.jbuilder (3.3ms)
+Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.6ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.4ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$YIqFVMYHd64tmcEjBJpws.JmsyCpw0ZG.F8MTY81kPtZS8MP706lu', '2016-08-09 12:53:59', '2016-08-09 12:53:59', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$XDtOjFxtkj4uvCRH3ZDVn.V2hiLLvEEROal.SnqAZ6HephjGkue.a', '2016-08-09 12:53:59', '2016-08-09 12:53:59', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:53:59.000000', '2016-08-09 12:53:59', '2016-08-09 12:53:59', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:53:59', '2016-08-09 12:53:59', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$MB24YS4Tf..IVjnWn.3gbuoCzQvhu.2nYwDldnQxkE1bujdWbyz1e', '2016-08-02 12:53:59.000000', '2016-08-09 12:53:59', '2016-08-09 12:53:59', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$ZF9kV6ZvOgC1MlUnZiUfQebi4kzG/hUvGbXWJplLhy6i68jOCtVBu', '2016-08-09 12:53:59', '2016-08-09 12:53:59', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+--------------------------------------------------------------------------
+Main::MainPageTest: test_should_update_number_of_comments_if_one_was_added
+--------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:53:59 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:53:59 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:53:59 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:53:59 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:53:59 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:53:59 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (4.9ms)
+Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:53:59 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:59.640365') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:59.641894') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:59.643575') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:53:59.667971"], ["updated_at", "2016-08-09 12:53:59.667971"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:53:59.672871"], ["updated_at", "2016-08-09 12:53:59.672871"]]
+ [1m[36m (1.3ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A53%3A59.644801%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:00 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:53:59.644801+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:59.644801') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:59.644801') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:53:59.644801') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (7.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$Z.3D6yIVpP9NIyrmnxFJrOgioi.ok9VonROh71RZJZU9cEBIOzIay', '2016-08-09 12:54:00', '2016-08-09 12:54:00', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$C.IfZrXGAXKPR3KCodc3zOKkOxL2.8fogKU3UIUDcVUiKfOFUc3ku', '2016-08-09 12:54:00', '2016-08-09 12:54:00', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:00.000000', '2016-08-09 12:54:00', '2016-08-09 12:54:00', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:00', '2016-08-09 12:54:00', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$i6ENCY0A4ev6JRLB8JRSF.Yj41v2TZbKAyozcb81QB7KwkRBwiuKq', '2016-08-02 12:54:00.000000', '2016-08-09 12:54:00', '2016-08-09 12:54:00', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$cNxOkJfqFtWTCpxJHPMUaOquBvQbg4n3OFfsM4BeaNYowy9APTUPG', '2016-08-09 12:54:00', '2016-08-09 12:54:00', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+---------------------------------------------------
+Main::MainPageTest: test_should_async_load_articles
+---------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:00 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:00 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:00 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:00 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:00 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:00 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (7.2ms)
+Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:00 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:00.926263') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:00.927870') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:00.928813') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$fcf3SHp9yayOX58.ZItqBO.ALdzeiJJUVoXmcoWnjCZFIhK04.6K2', '2016-08-09 12:54:01', '2016-08-09 12:54:01', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$0jchYQYh4FPKq/jGblZnted8qB004n.JOyaDeaEN/BapC2dyjDULW', '2016-08-09 12:54:01', '2016-08-09 12:54:01', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:01.000000', '2016-08-09 12:54:01', '2016-08-09 12:54:01', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:01', '2016-08-09 12:54:01', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$c6SvD87tM1sIINC/VpHv0udIj5YoHsIKkpGnxPcMtScUB24zFjin.', '2016-08-02 12:54:01.000000', '2016-08-09 12:54:01', '2016-08-09 12:54:01', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$S17F3lEGNXltBQEBqr9qNuXQW1jeSyFmkUaZzrUBVWQfjvY9bfcfS', '2016-08-09 12:54:01', '2016-08-09 12:54:01', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+-----------------------------------------------------------
+Main::MainPageTest: test_should_auto_load_published_article
+-----------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:01 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.3ms)
+Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:01 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:01 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:01 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:01 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:01 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (4.9ms)
+Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:01 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:01.168618') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:01.170037') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:01.171419') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.4ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "articles" SET "published_at" = ?, "updated_at" = ? WHERE "articles"."id" = ?[0m [["published_at", "2016-08-09 12:54:01.189614"], ["updated_at", "2016-08-09 12:54:01.190556"], ["id", 298486374]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("obj_class", "obj_id", "event", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["obj_class", "Article"], ["obj_id", 298486374], ["event", "published"], ["data", "{\"id\":298486374}"], ["created_at", "2016-08-09 12:54:01.194897"], ["updated_at", "2016-08-09 12:54:01.194897"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A01.172361%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:01.172361+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:01.172361') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:01.172361') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:01.172361') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/articles/298486374?abbr=true" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Processing by Main::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"298486374"}
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) AND "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.1ms)
+ Rendered main/articles/show.json.jbuilder (1.6ms)
+Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.4ms)
+ [1m[35m (2.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$8uGvRkfrriwlFmEUKzWT4uOTv.ODNOoGGIQXOq53dDFXYuj3Shi.W', '2016-08-09 12:54:02', '2016-08-09 12:54:02', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$pV4FldVBeUkkkrPKzfMjZOYcNJlMZoxdKUoAg22yOnqa2R/xlowXa', '2016-08-09 12:54:02', '2016-08-09 12:54:02', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:02.000000', '2016-08-09 12:54:02', '2016-08-09 12:54:02', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:02', '2016-08-09 12:54:02', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$q5CihaJU/oS01WIYn6.PI.5.NcJ778Iuu7RsW.Vr4isYXFH5hK1I2', '2016-08-02 12:54:02.000000', '2016-08-09 12:54:02', '2016-08-09 12:54:02', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$uVrefchH2oBsweYQDgfDaeZWwpO33gNWPryiJ61c5yd.6Swn1d/.e', '2016-08-09 12:54:02', '2016-08-09 12:54:02', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+----------------------------------------------------------------------------
+Main::MainPageTest: test_should_update_number_of_comments_if_one_was_deleted
+----------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered main/articles/index.json.jbuilder (4.3ms)
+Completed 200 OK in 9ms (Views: 4.3ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:02.465807') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:02.467121') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:02.468822') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:54:02.482812"], ["updated_at", "2016-08-09 12:54:02.482812"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:54:02.486596"], ["updated_at", "2016-08-09 12:54:02.486596"]]
+ [1m[35m (0.7ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Jason"], ["text", "Very interesting..."], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:54:02.490731"], ["updated_at", "2016-08-09 12:54:02.490731"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":2}"], ["obj_class", "Comment"], ["obj_id", 2], ["event", "created"], ["created_at", "2016-08-09 12:54:02.494435"], ["updated_at", "2016-08-09 12:54:02.494435"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (6.7ms)
+Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:02 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:02.635847') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:02.637032') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:02.637992') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.4ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:54:02.696168"], ["updated_at", "2016-08-09 12:54:02.696168"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 2]]
+ [1m[35m (0.6ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":2}"], ["obj_class", "Comment"], ["obj_id", 2], ["event", "destroyed"], ["created_at", "2016-08-09 12:54:02.701057"], ["updated_at", "2016-08-09 12:54:02.701057"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A02.639121%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:03 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:02.639121+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:02.639121') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:02.639121') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:02.639121') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.1ms)
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.6ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$e1yaACorFQ3qRmwHIjgNUeQfvnvpNzOLmsTV0FoFxeUiMfoRQDY2q', '2016-08-09 12:54:03', '2016-08-09 12:54:03', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$i8jOWcf9dtHDhCV9KmKuj.s6zKY8q8vr2egf6Lzds8Akqf0Unu/4q', '2016-08-09 12:54:03', '2016-08-09 12:54:03', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:03.000000', '2016-08-09 12:54:03', '2016-08-09 12:54:03', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:03', '2016-08-09 12:54:03', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$9B/lvRZO.B.38sslIfozuuBV5GhCV.Yl5qe4pQhuArlMYGozAq1JC', '2016-08-02 12:54:03.000000', '2016-08-09 12:54:03', '2016-08-09 12:54:03', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$wRNcDOW6OdRJBDcvGiTshu4KvskArXUdjr1ekXvn1fXyz9WWXumsG', '2016-08-09 12:54:03', '2016-08-09 12:54:03', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+-----------------------------------------------------------
+Admin::ArticlesListTest: test_should_auto_update_an_article
+-----------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:03 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:03 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:03 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:03 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:03 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:03 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:03.988772') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:03.989887') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.6ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:03.991407') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.5ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:54:04 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:52002/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:54:04 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:04 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:04 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:04 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:04 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:54:04 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
+ [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0
+ Rendered admin/users/_user.json.jbuilder (0.4ms)
+ Rendered admin/users/_user.json.jbuilder (0.5ms)
+ Rendered admin/users/index.json.jbuilder (3.7ms)
+Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:04 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:04.683870') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:04.684995') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:04.685886') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:54:04 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:54:04 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.5ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (2.8ms)
+ Rendered admin/articles/published.json.jbuilder (6.8ms)
+Completed 200 OK in 14ms (Views: 6.5ms | ActiveRecord: 1.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:04 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:04.842770') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:04.844556') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:04.845716') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.7ms)[0m [1mUPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ?[0m [["title", "AGtTRA"], ["text", "TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT..."], ["updated_at", "2016-08-09 12:54:05.015698"], ["id", 980190962]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "updated"], ["created_at", "2016-08-09 12:54:05.021594"], ["updated_at", "2016-08-09 12:54:05.021594"]]
+ [1m[36m (1.6ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A04.846655%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:05 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:04.846655+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:04.846655') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:04.846655') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:04.846655') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:54:05 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article.json.jbuilder (2.1ms)
+ Rendered admin/articles/show.json.jbuilder (4.5ms)
+Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.6ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.6ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$8OYGxffoxzIbzmRXYMwp.ukOX0deMyKItrNwCO8FuZDf90S2weW1C', '2016-08-09 12:54:05', '2016-08-09 12:54:05', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$XGJZe0Sm3WEwKRvWu0bQEOGRRwMDRR0ZLHR1VesPl0iu1.U91byn.', '2016-08-09 12:54:05', '2016-08-09 12:54:05', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:05.000000', '2016-08-09 12:54:05', '2016-08-09 12:54:05', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:05', '2016-08-09 12:54:05', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$nGY3kXcZP2vZ6YE2D93h1efwmOVsgaO8wAI4j1ph.akoKUxQlieEe', '2016-08-02 12:54:05.000000', '2016-08-09 12:54:05', '2016-08-09 12:54:05', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$Mv69.pNyKz4TUBeXq4Unz.qCr8VLg3gCjIqLhvSSHe5bXjEdv.7Rq', '2016-08-09 12:54:05', '2016-08-09 12:54:05', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+---------------------------------------------------------------------------------
+Admin::ArticlesListTest: test_should_auto_increment_/_decrement_comments_quantity
+---------------------------------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.4ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.172390') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.174107') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.175572') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.4ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:52002/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0
+ Rendered admin/users/_user.json.jbuilder (0.4ms)
+ Rendered admin/users/_user.json.jbuilder (0.4ms)
+ Rendered admin/users/index.json.jbuilder (6.0ms)
+Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.691306') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.692400') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.693289') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.4ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (1.7ms)
+ Rendered admin/articles/published.json.jbuilder (4.6ms)
+Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:06 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.825396') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.828117') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.829463') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.5ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:54:06.906890"], ["updated_at", "2016-08-09 12:54:06.906890"]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:54:06.910195"], ["updated_at", "2016-08-09 12:54:06.910195"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A06.830908%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:07 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:06.830908+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.830908') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.830908') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:06.830908') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "comments" WHERE "comments"."id" = ? [["id", 1]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:54:07.890026"], ["updated_at", "2016-08-09 12:54:07.890026"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A07.824195%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:08 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:07.824195+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:07.824195') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:07.824195') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:07.824195') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$05obYU.aQgei87T..g.7AOsIstt4cF6Z7WlDKXj0OECdFqTDdceuG', '2016-08-09 12:54:08', '2016-08-09 12:54:08', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$Ee0OzkSxS9C4BTgzk693qOj7Sizra8.yfx9wbtMVZ3ZvBYEDUv5Ku', '2016-08-09 12:54:08', '2016-08-09 12:54:08', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:08.000000', '2016-08-09 12:54:08', '2016-08-09 12:54:08', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:08', '2016-08-09 12:54:08', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$cwgOQeUdaffzLVtdvP0YreuAetNXj6WjB73ecUSIXs2UPBXdPBfv2', '2016-08-02 12:54:08.000000', '2016-08-09 12:54:08', '2016-08-09 12:54:08', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$DI5n9RUOPTGtEhjthWSMeOZA3sZ0C2GawwS1XM6.B9OVFXB6bxq2O', '2016-08-09 12:54:08', '2016-08-09 12:54:08', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+-----------------------------------------------------------------------
+Admin::ArticlesListTest: test_should_auto_load_newly_published_articles
+-----------------------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:08 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.4ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (0.7ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.161935') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.162914') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.163690') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:52002/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users"
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0[0m
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/_user.json.jbuilder (0.2ms)
+ Rendered admin/users/index.json.jbuilder (2.2ms)
+Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.614379') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.615432') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.617032') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (2.3ms)
+ Rendered admin/articles/published.json.jbuilder (6.5ms)
+Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:09 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.744459') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.746065') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.747180') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.5ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A09.748413%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:10 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:09.748413+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.748413') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.748413') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:09.748413') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A10.741314%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:11 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:10.741314+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:10.741314') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:10.741314') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:10.741314') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A11.750216%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:12 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:11.750216+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:11.750216') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:11.750216') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:11.750216') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A12.734792%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:13 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:12.734792+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:12.734792') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:12.734792') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:12.734792') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A13.732184%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:14 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:13.732184+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:13.732184') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:13.732184') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:13.732184') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.7ms)
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "articles" SET "published_at" = ?, "updated_at" = ? WHERE "articles"."id" = ?[0m [["published_at", "2016-08-09 12:54:14.847365"], ["updated_at", "2016-08-09 12:54:14.848035"], ["id", 298486374]]
+ [1m[35m (0.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("obj_class", "obj_id", "event", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["obj_class", "Article"], ["obj_id", 298486374], ["event", "published"], ["data", "{\"id\":298486374}"], ["created_at", "2016-08-09 12:54:14.851323"], ["updated_at", "2016-08-09 12:54:14.851323"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A14.737065%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:15 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:14.737065+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:14.737065') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:14.737065') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:14.737065') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 10
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/admin/articles/298486374" for 127.0.0.1 at 2016-08-09 14:54:15 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"298486374"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered admin/articles/_article.json.jbuilder (1.2ms)
+ Rendered admin/articles/show.json.jbuilder (2.3ms)
+Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.4ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.6ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$gBiVCw60eRXL6EtYetXNMesxf3xRsok1JCAuVD4r377TOMYpF4L7K', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$Vfi1dfhbuYM2HjcNlhZIbOU2Zk38y9w/6XotMm1Bj9tSR4wmCA1eC', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:15.000000', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$QzxihuEAdS0jdB95guSpVuCZABaeHwWzXokhdFFNmpu7IYCwL6Hqm', '2016-08-02 12:54:15.000000', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$LMTjxdOPgq.aENFdhNYhiOMjG1ElCtwDEv0BZpuEQ22yk0Fa9heJy', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 15595101)
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+--------------------
+LocoTest: test_truth
+--------------------
+ [1m[35m (0.8ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$Df7FoFDsgTg9KR7eq6HD2u8jPtBrsoc0MUfSwByjU5LYK4Oy2q/tO', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$Gh/xzoNWYgiCrTF12KSxMe99wvoEl/HZfmvRPkotqdqsbxrBK38y2', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:15.000000', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$ZTIKQaf6uGDd7l5UOR/NBuD2f6iXymttdxX3jmsy8LrqMUaEQjPAy', '2016-08-02 12:54:15.000000', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$99zjHMrw0/KtMKTPxUch8OHW9sUGGppP8iwE4kkETB6twFDowZg5C', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+-------------------------------------------------------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_should_not_return_addressed_notifications_without_passing_correct_permissions
+-------------------------------------------------------------------------------------------------------------------
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "published"], ["recipient_class", "Admin"], ["recipient_id", 980190962], ["created_at", "2016-08-09 12:54:15.893200"], ["updated_at", "2016-08-09 12:54:15.893200"]]
+ [1m[36m (1.2ms)[0m [1mcommit transaction[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:12.890832') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$LueoJbItW/xv/.XfJCLJ3O5vpuZHgQz7PW/VzKJt.0j0sS9B4Slw.', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$z1N83gKidtnzl2N0H8aFOOva8GkEhsMD2cY22epYghuvzqhnaUPjW', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:15.000000', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$p4EGJUc4bU5dsym3o6vvYuzpcBNujpQmGJPCdTMHNFxPpTCWABO4i', '2016-08-02 12:54:15.000000', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$YDQxhd/WtjIT4GBZDrqlOupJFMfCK4lR5n5BRP1Sppuf9WNFmX4Hm', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 15595101)
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+-------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_fetching_with_recipient_token
+-------------------------------------------------------------------
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "published"], ["recipient_token", "123qweasd"], ["created_at", "2016-08-09 12:54:15.926875"], ["updated_at", "2016-08-09 12:54:15.926875"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:12.925161') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 10
+ [1m[36mLoco::Notification Load (0.6ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:12.925161') AND "loco_notifications"."recipient_token" = ? ORDER BY created_at ASC LIMIT 10[0m [["recipient_token", "123qweasd"]]
+ [1m[35m (1.2ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$8D0eZD.rmSX11c/h/AnVsep61yusrdixj60EcuprAh116siQstavW', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$ZXIDKf.ELnTdPpcKxQ/...IvDzw3u/aBzZsOBpAK7wjGyDjm8nBSu', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:15.000000', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$rqxAaxG4KJKp8wTRUf86Ee8zjKRQrFcC3oVsTZg4EQRLdCqAtIaHW', '2016-08-02 12:54:15.000000', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$kxkA0dx8JaZcCvBQ12EKieH0kE/wrZOATl6mIMVRDLlKQb9s6U1uW', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+--------------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_should_set_max_size_via_Loco::Config
+--------------------------------------------------------------------------
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$XfdTzS.LKyQWyvO38eaq3e3Rr6mtrSiOez.LDl.5dhjM1ywuShiL2', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$Fz6LnUwWGKq72IZobfcdK.fQ71GJswg2YcSqVz8JzGkXkWE.Tvy7e', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:15.000000', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$dAR21kIfDUqD3apT86V6T.H56FAyuZatK95iqkABw8EqCUY1Bdw6S', '2016-08-02 12:54:15.000000', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$DRf7GMT.n5g2a4eH5YPrY.W3jXKNjHR6MpmV5Z5gvmY14q/WrqqNm', '2016-08-09 12:54:15', '2016-08-09 12:54:15', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+---------------------------------------------------------
+Loco::Notification::FetcherTest: test_pemissions_as_class
+---------------------------------------------------------
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "published"], ["recipient_class", "Admin"], ["created_at", "2016-08-09 12:54:15.989033"], ["updated_at", "2016-08-09 12:54:15.989033"]]
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:12.985674') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:12.985674') AND ((recipient_class = 'Admin' AND recipient_id = 980190962) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:12.986953') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:12.986953') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$WGhcLEFpziF7mbXdV7NxLe/lQYuN1G8xD6cSkmMac4zZnn9YoessO', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$.jIr/vfEZb21lHtWv8iit.25uQw4on3PI5x7cA3du1rdicW7JjaQ.', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:16.000000', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$aIx/xUQJ626faXcUv7gnyueU4/sFKy.SojnVEBXX2ewVWlTuDuAIO', '2016-08-02 12:54:16.000000', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$bJdY3J12uKiJFBqYyJMZku0mrMyTCCTuzv.yFSg5lkfh4dtl8LS4y', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 15595101)[0m
+ [1m[35m (1.1ms)[0m commit transaction
+---------------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_should_set_max_size_on_initialization
+---------------------------------------------------------------------------
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "connections";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$CxnJPITG5qB8NtedfSxrGOyID.7JPRwogOp6ytNDTBiZg5oNdK/NS', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$nyBv67HbU9tvy/SROHjPseHh18sm/Oh4g0lXnATaazksVs3Z.7vaS', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:16.000000', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$DB3k1rDijqEYMQM0pKBq9ek8ULC1F8BLW0SRoQ0WIUO.bXpuO0JOm', '2016-08-02 12:54:16.000000', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$ANBO/3kJiFWWAQo9yLdKm.tTCLIf74wb4xLoqDyMoO1fqW/P57sWK', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+-----------------------------------------------------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_should_not_return_addressed_notifications_when_passed_incorrect_permissions
+-----------------------------------------------------------------------------------------------------------------
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "published"], ["recipient_class", "Admin"], ["recipient_id", 298486374], ["created_at", "2016-08-09 12:54:16.050956"], ["updated_at", "2016-08-09 12:54:16.050956"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:13.048035') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:13.048035') AND ((recipient_class = 'Admin' AND recipient_id = 980190962) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35m (1.5ms)[0m DELETE FROM "articles";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$g1usfqV6ScJQp3H.r1pA5OKNLcrkPgTrND7L/8lwVdcYC3jxZe6nu', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$hYqD0CvjpYpFLQPHMZvRIOiCf7TBCJh37Mc3qfEmZW0zpv2gN3JEm', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:16.000000', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$Lnc4FYjoQ6EhoQgNSv2hKOWLg6h2UDYNd/N3qgVimCvmf/.CUJxk2', '2016-08-02 12:54:16.000000', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$.9qL75JBRLRwOjB/iEzIrumDRIUtkAx61ch.7eAWVJiS21O5UV8pS', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+-----------------------------------------------------------------------------------------------------------
+Loco::Notification::FetcherTest: test_should_return_addressed_notifications_when_passed_correct_permissions
+-----------------------------------------------------------------------------------------------------------
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "published"], ["recipient_class", "Admin"], ["recipient_id", 980190962], ["created_at", "2016-08-09 12:54:16.086523"], ["updated_at", "2016-08-09 12:54:16.086523"]]
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:13.084393') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:13.084393') AND ((recipient_class = 'Admin' AND recipient_id = 980190962) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35m (1.2ms)[0m DELETE FROM "articles";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.3ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$5z5KkHjNm9kSzSzm2LxyyuGSJNoUNO0PRbq9kL/OuibRBHVrsEJcS', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$oXP4bGH1rk/gkVtZ.0LNZ.WUh0i3PkUNmGcFe5Q3ehGIoMssWVaU.', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:16.000000', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$BszP6qP44ELnNNwZqoOTceFmsXTvYAbCopFplBRL0BNVsVJ4b/8Dq', '2016-08-02 12:54:16.000000', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$0T19sol80Jk1RJXprm4DwOOjhnWsdZ2E1yLBFMMfcp3w6GZt2jNZ6', '2016-08-09 12:54:16', '2016-08-09 12:54:16', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+--------------------------------------------------------
+User::ArticlesCreatePageTest: test_should_create_article
+--------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:16 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:16 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:16 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:16 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:16 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:16 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (2.2ms)
+ Rendered main/articles/index.json.jbuilder (8.3ms)
+Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:16.272259') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:16.273661') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:16.274979') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:16 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.4ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:16 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:16.442260') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:16.443772') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.6ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:16.444975') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.6ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:54:16 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:54:16 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:17 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:17 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:17 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:17 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:17 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered user/articles/index.json.jbuilder (8.1ms)
+Completed 200 OK in 12ms (Views: 8.1ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:17 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:17.123908') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:17.125696') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:17.127094') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+Started GET "/user/articles/new" for 127.0.0.1 at 2016-08-09 14:54:17 +0200
+Processing by User::ArticlesController#new as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/_form.html.erb (1.7ms)
+ Rendered user/articles/new.html.erb within layouts/application (2.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:17 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:17.256286') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:17.257303') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:17.258275') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A17.259096%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:18 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:17.259096+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:17.259096') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:17.259096') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:17.259096') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started POST "/user/articles" for 127.0.0.1 at 2016-08-09 14:54:18 +0200
+Processing by User::ArticlesController#create as JSON
+ Parameters: {"article"=>{"title"=>"Article #1", "text"=>"The Ruby I18n (shorthand for internationalization) gem which is shipped with Ruby on Rails (starting from Rails 2.2) provides an easy-to-use and extensible framework for translating your application to a single custom language other than English or for providing multi-language support in your application. The process of 'internationalization' usually means to abstract all strings and other locale specific bits (such as date or currency formats) out of your application. The process of 'localization' means to provide translations and localized formats for these bits.", "created_at"=>"", "updated_at"=>"", "comments_count"=>"", "published_at"=>"", "published"=>"false", "admin_review"=>"", "admin_rate"=>"", "category_id"=>"", "admin_review_started_at"=>""}}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Unpermitted parameters: created_at, updated_at, comments_count, published_at, published, admin_review, admin_rate, category_id, admin_review_started_at
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "articles" ("title", "text", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Article #1"], ["text", "The Ruby I18n (shorthand for internationalization) gem which is shipped with Ruby on Rails (starting from Rails 2.2) provides an easy-to-use and extensible framework for translating your application to a single custom language other than English or for providing multi-language support in your application. The process of 'internationalization' usually means to abstract all strings and other locale specific bits (such as date or currency formats) out of your application. The process of 'localization' means to provide translations and localized formats for these bits."], ["user_id", 872278135], ["created_at", "2016-08-09 12:54:18.577519"], ["updated_at", "2016-08-09 12:54:18.577519"]]
+ [1m[35m (0.7ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":980190963}"], ["obj_class", "Article"], ["obj_id", 980190963], ["event", "created"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:54:18.581342"], ["updated_at", "2016-08-09 12:54:18.581342"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 2.9ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$7sJEeJIZ9944PS2Sfhvqlu4dBt3JpdsN/WETFuW2/LrtDPVz/O66e', '2016-08-09 12:54:18', '2016-08-09 12:54:18', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$WaYmbcrpm9TGDrk3loZaYe3bTeF2NpOPyIA61DB5Z73OLWuCtNuI2', '2016-08-09 12:54:18', '2016-08-09 12:54:18', 298486374)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:18.000000', '2016-08-09 12:54:18', '2016-08-09 12:54:18', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:18', '2016-08-09 12:54:18', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$5Q2G5KppXf1Bx6XADOCPQeEZurl41iZCkQtzk0XTAz7PLfziMQNcG', '2016-08-02 12:54:18.000000', '2016-08-09 12:54:18', '2016-08-09 12:54:18', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$e0xSHIzOcryIuQ5aJoP.q.dDJrshWTa/THABQS.V.lzEzBPyDF9Zq', '2016-08-09 12:54:18', '2016-08-09 12:54:18', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+-----------------------------------
+SigningUpTest: test_signing_up_user
+-----------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:18 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:18 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:18 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:18 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:18 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:18 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.5ms)
+ Rendered main/articles/index.json.jbuilder (7.0ms)
+Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:18 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:18.791854') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:18.793127') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:18.794394') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.2ms)
+Started GET "/users/new" for 127.0.0.1 at 2016-08-09 14:54:18 +0200
+Processing by Main::UsersController#new as HTML
+ Rendered main/users/new.html.erb within layouts/application (4.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:18 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:18.928928') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:18.930198') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:18.931126') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/users" for 127.0.0.1 at 2016-08-09 14:54:19 +0200
+Processing by Main::UsersController#create as JSON
+ Parameters: {"user"=>{"email"=>"joe@example.com", "username"=>"joe", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "confirmed"=>"", "created_at"=>"", "updated_at"=>""}}
+Unpermitted parameters: confirmed, created_at, updated_at
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'joe@example.com' LIMIT 1
+ [1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."username" = 'joe' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "password_digest", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "joe@example.com"], ["password_digest", "$2a$04$gc2JnuIFk0EY2kp7i.6edOjATzd/tIQWaspFtWqQeB00ZhBaHUE4y"], ["username", "joe"], ["created_at", "2016-08-09 12:54:19.394411"], ["updated_at", "2016-08-09 12:54:19.394411"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":872278136}"], ["obj_class", "User"], ["obj_id", 872278136], ["event", "created"], ["recipient_class", "Admin"], ["created_at", "2016-08-09 12:54:19.398822"], ["updated_at", "2016-08-09 12:54:19.398822"]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "connections" ("obj_class", "obj_id", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["obj_class", "User"], ["obj_id", 872278136], ["token", "59786d61a28cf39d267b"], ["created_at", "2016-08-09 12:54:19.408429"], ["updated_at", "2016-08-09 12:54:19.408429"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+Completed 200 OK in 25ms (Views: 0.4ms | ActiveRecord: 4.8ms)
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "joe@example.com"]]
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "joe@example.com"]]
+ [1m[35mConnection Load (0.1ms)[0m SELECT "connections".* FROM "connections" WHERE "connections"."obj_class" = ? AND "connections"."obj_id" = ? ORDER BY "connections"."id" DESC LIMIT 1 [["obj_class", "User"], ["obj_id", 872278136]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":872278136}"], ["obj_class", "User"], ["obj_id", 872278136], ["event", "confirming"], ["recipient_token", "59786d61a28cf39d267b"], ["created_at", "2016-08-09 12:54:19.602589"], ["updated_at", "2016-08-09 12:54:19.602589"]]
+ [1m[36m (0.8ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A18.931966%2B02%3A00&token=59786d61a28cf39d267b" for 127.0.0.1 at 2016-08-09 14:54:19 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:18.931966+02:00", "token"=>"59786d61a28cf39d267b"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:18.931966') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:18.931966') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:18.931966') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:18.931966') AND "loco_notifications"."recipient_token" = ? ORDER BY created_at ASC LIMIT 1000[0m [["recipient_token", "59786d61a28cf39d267b"]]
+Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 1.4ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "joe@example.com"]]
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "joe@example.com"]]
+ [1m[35mConnection Load (0.1ms)[0m SELECT "connections".* FROM "connections" WHERE "connections"."obj_class" = ? AND "connections"."obj_id" = ? ORDER BY "connections"."id" DESC LIMIT 1 [["obj_class", "User"], ["obj_id", 872278136]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":872278136}"], ["obj_class", "User"], ["obj_id", 872278136], ["event", "confirmed"], ["recipient_token", "59786d61a28cf39d267b"], ["created_at", "2016-08-09 12:54:20.055125"], ["updated_at", "2016-08-09 12:54:20.055125"]]
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A19.941031%2B02%3A00&token=59786d61a28cf39d267b" for 127.0.0.1 at 2016-08-09 14:54:20 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:19.941031+02:00", "token"=>"59786d61a28cf39d267b"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:19.941031') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:19.941031') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:19.941031') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:19.941031') AND "loco_notifications"."recipient_token" = ? ORDER BY created_at ASC LIMIT 1000[0m [["recipient_token", "59786d61a28cf39d267b"]]
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/user/sessions/new?event=confirmed" for 127.0.0.1 at 2016-08-09 14:54:20 +0200
+Processing by User::SessionsController#new as HTML
+ Parameters: {"event"=>"confirmed"}
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:20 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:20 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:20 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:20 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.076624') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.077748') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.078701') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$c9BNQM09lX4otZdvyE2ImOHJF.S8zHppVJWmBoLNbmSpQrlfbh9su', '2016-08-09 12:54:21', '2016-08-09 12:54:21', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$b7akQG9G9xWO2iZ./adeZ.yWx.W.W7e4IKm4rPSUjWpMI.zwwYNsm', '2016-08-09 12:54:21', '2016-08-09 12:54:21', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:21.000000', '2016-08-09 12:54:21', '2016-08-09 12:54:21', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:21', '2016-08-09 12:54:21', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$5bmLzqn5ccuSjxOks2yOxuFp7HRvOFLQwQzw7cX6h5e2UC2hqV25i', '2016-08-02 12:54:21.000000', '2016-08-09 12:54:21', '2016-08-09 12:54:21', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$7Zy1F2T4jT.67LXZYqq/Nu82lKZPZ21rOmLrIK8443AhQYIMXQwQW', '2016-08-09 12:54:21', '2016-08-09 12:54:21', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+---------------------------------------------------------------------------
+User::ArticlesListTest: test_should_remove_article_from_the_list_on_destroy
+---------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.8ms)
+ Rendered main/articles/index.json.jbuilder (5.9ms)
+Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.314350') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.315779') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.317123') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.426663') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.427674') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.428478') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.1ms)
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.1ms)
+ Rendered user/articles/index.json.jbuilder (6.9ms)
+Completed 200 OK in 13ms (Views: 6.9ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:21 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.884678') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.885789') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.886865') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "destroyed"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:54:21.911415"], ["updated_at", "2016-08-09 12:54:21.911415"]]
+ [1m[35m (1.4ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A21.887849%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:22 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:21.887849+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.887849') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.887849') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:21.887849') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A22.882616%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:23 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:22.882616+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:22.882616') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:22.882616') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:22.882616') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A23.887142%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:24 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:23.887142+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:23.887142') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:23.887142') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:23.887142') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A24.881262%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:25 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:24.881262+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:24.881262') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:24.881262') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:24.881262') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A25.935044%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:26 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:25.935044+02:00"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:25.935044') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:25.935044') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:25.935044') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.8ms)
+ [1m[35m (1.2ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$87gTd6Iv40.JC.v8quU5sO4I.yJD2mdSDn0/ymMOarM/fj5WaUnbu', '2016-08-09 12:54:27', '2016-08-09 12:54:27', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$wWxA4PNO2RgahX2l9qt5put.gsSJTP5RSyot5IUSkMIyoefzCTPh.', '2016-08-09 12:54:27', '2016-08-09 12:54:27', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:27.000000', '2016-08-09 12:54:27', '2016-08-09 12:54:27', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:27', '2016-08-09 12:54:27', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$8OqZTcg83jTcIh626ZInrO0l1p4wt7/MCyuZ5V3Ud16IHBHUKTRP2', '2016-08-02 12:54:27.000000', '2016-08-09 12:54:27', '2016-08-09 12:54:27', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$nxfCswl/w1LYLioGMq8J8e77tMPqrUa588e7iR6GAO/9Bv86Swnc2', '2016-08-09 12:54:27', '2016-08-09 12:54:27', 15595101)[0m
+ [1m[35m (0.8ms)[0m commit transaction
+--------------------------------------------------------------------------------------------
+User::ArticlesListTest: test_should_auto_update_the_list_to_include_a_recently_added_article
+--------------------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (2.3ms)
+ Rendered main/articles/index.json.jbuilder (5.9ms)
+Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.208058') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.209135') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.209981') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.316819') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.318024') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.319156') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (3.0ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.5ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered user/articles/index.json.jbuilder (6.6ms)
+Completed 200 OK in 13ms (Views: 6.6ms | ActiveRecord: 3.6ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:27 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.775930') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.778072') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.779572') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.4ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.8ms)[0m INSERT INTO "articles" ("title", "text", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Article #1"], ["text", "Lorem ipsum dolor sit amet, consectetur adipiscing elit.Lorem ipsum dolor sit amet, consectetur adipiscing elit."], ["user_id", 872278135], ["created_at", "2016-08-09 12:54:27.797038"], ["updated_at", "2016-08-09 12:54:27.797038"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":980190963}"], ["obj_class", "Article"], ["obj_id", 980190963], ["event", "created"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:54:27.801999"], ["updated_at", "2016-08-09 12:54:27.801999"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A27.780464%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:28 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:27.780464+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.780464') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.780464') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:27.780464') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles/980190963?abbr=true" for 127.0.0.1 at 2016-08-09 14:54:28 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"980190963"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1[0m [["user_id", 872278135], ["id", 980190963]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190963]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.8ms)
+ Rendered user/articles/show.json.jbuilder (5.5ms)
+Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.4ms)
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.2ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$eevbzL8HivbkNJFwZSf7PO2fEHs3snvpVtiy7yMpwQjSmxE1LjIkq', '2016-08-09 12:54:29', '2016-08-09 12:54:29', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$4ykDFFUEaUJRGoOAdgcIu.Ol4u0k65e4AYFBIYC0aty3C5qNNxNim', '2016-08-09 12:54:29', '2016-08-09 12:54:29', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:29.000000', '2016-08-09 12:54:29', '2016-08-09 12:54:29', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:29', '2016-08-09 12:54:29', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$j8v4sRTVjVBE9GAqEtcin..XkSrcMMrCsJIW7W0Fnv19387BMrq6G', '2016-08-02 12:54:29.000000', '2016-08-09 12:54:29', '2016-08-09 12:54:29', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$G6WE7f9QUG.zBBozVUP2Heayi1NWvbuI4nBB0iLWk2m3V7raSukn.', '2016-08-09 12:54:29', '2016-08-09 12:54:29', 15595101)
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+------------------------------------------------------------------------------
+User::ArticlesListTest: test_should_update_number_of_comments_if_one_was_added
+------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.8ms)
+ Rendered main/articles/index.json.jbuilder (8.3ms)
+Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.209905') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.212250') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.213492') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.326810') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.328077') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.329205') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.9ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered user/articles/index.json.jbuilder (5.7ms)
+Completed 200 OK in 12ms (Views: 5.7ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:29 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.749902') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.751144') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.752301') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:54:29.767718"], ["updated_at", "2016-08-09 12:54:29.767718"]]
+ [1m[35m (0.7ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:54:29.771192"], ["updated_at", "2016-08-09 12:54:29.771192"]]
+ [1m[36m (1.1ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A29.753600%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:30 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:29.753600+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.753600') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.753600') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:29.753600') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.3ms)
+ [1m[36m (1.2ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (1.3ms)[0m DELETE FROM "connections";
+ [1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$cqw0XP3AjcdNZTHEGOmdiO7wRTeqKIv1HmgrlDfyxEaVNGiq6k6jy', '2016-08-09 12:54:30', '2016-08-09 12:54:30', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$QTxcsRdfUTi0aYFizcvVAeNy8Jy.yrhV2w71Q5d/RyZi6Tp1fAbIW', '2016-08-09 12:54:30', '2016-08-09 12:54:30', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:30.000000', '2016-08-09 12:54:30', '2016-08-09 12:54:30', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:30', '2016-08-09 12:54:30', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$lIyP.T5r.1A9WqnLCTkLx.nDY1LW2KT89dyZT1giVbNCbi/R0UzRq', '2016-08-02 12:54:30.000000', '2016-08-09 12:54:30', '2016-08-09 12:54:30', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$gPGnkWoLY1k0v32yUW/qGeWk9v1n9qSkIPopEr91K1o3lAcq55oue', '2016-08-09 12:54:30', '2016-08-09 12:54:30', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+-------------------------------------------------------------------------------
+User::ArticlesListTest: test_should_update_title_of_updated_article_on_the_list
+-------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:30 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:30 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:30 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:30 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:30 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:30 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.9ms)
+ Rendered main/articles/index.json.jbuilder (7.7ms)
+Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:30 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:30.956465') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:30.957692') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:30.958728') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.068832') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.070006') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.070987') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.0ms)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered user/articles/index.json.jbuilder (6.2ms)
+Completed 200 OK in 13ms (Views: 6.2ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.514624') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.516403') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.517522') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/user/articles" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (2.0ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered user/articles/index.json.jbuilder (6.4ms)
+Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 1.0ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:31 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.682450') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.684329') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.685290') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["title", "WiAR"], ["text", "Lorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum IILorem Ipsum II"], ["updated_at", "2016-08-09 12:54:31.698694"], ["id", 298486374]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:54:31.703534"], ["updated_at", "2016-08-09 12:54:31.703534"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A31.686328%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:31.686328+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.686328') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.686328') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:31.686328') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles/298486374?abbr=true" for 127.0.0.1 at 2016-08-09 14:54:32 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.1ms)
+ Rendered user/articles/show.json.jbuilder (1.6ms)
+Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.3ms)
+ [1m[35m (1.4ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$2SF1eE6ZpmwvHrlCA6FsiuJphRopk5nvVsizqVebv7r6jxpYyKWIq', '2016-08-09 12:54:32', '2016-08-09 12:54:32', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$WU9jHldlvSS9nZPQ0uRphO/RsMoN3MUHG9MjcpmiBRaSBTmUDfsjq', '2016-08-09 12:54:32', '2016-08-09 12:54:32', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:32.000000', '2016-08-09 12:54:32', '2016-08-09 12:54:32', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:32', '2016-08-09 12:54:32', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$DyETQGC2WTqLKGDP1D4NkuVGHX0KizsHq5.bEhz1viWz40fx5IigC', '2016-08-02 12:54:32.000000', '2016-08-09 12:54:32', '2016-08-09 12:54:32', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$gaa0cA/0MIvVzvnkThY6CutVymGVTOZqOB6SpUd3ppp72jfUB/dTu', '2016-08-09 12:54:32', '2016-08-09 12:54:32', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+--------------------------------------------------------------------------------
+User::ArticlesListTest: test_should_update_number_of_comments_if_one_was_deleted
+--------------------------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:32 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:32 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:32 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:32 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:32 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:32 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (7.4ms)
+Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:32 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:32.992408') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:32.993633') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:32.994488') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:33 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:33 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:33.092415') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:33.093512') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:33.094620') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:54:33 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:54:33 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:33 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:33 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:33 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:33 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:33 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.5ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (3.6ms)
+ Rendered user/articles/index.json.jbuilder (7.3ms)
+Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:33 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:33.517565') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:33.519285') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:33.520357') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "comments" ("author", "text", "article_id", "emotion", "pinned", "admin_rate", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["author", "Ryan"], ["text", "Some nice thoughts dude"], ["article_id", 980190962], ["emotion", 0], ["pinned", "f"], ["admin_rate", 3], ["created_at", "2016-08-09 12:54:33.536767"], ["updated_at", "2016-08-09 12:54:33.536767"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "created"], ["created_at", "2016-08-09 12:54:33.540570"], ["updated_at", "2016-08-09 12:54:33.540570"]]
+ [1m[35m (0.8ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A33.521144%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:34 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:33.521144+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:33.521144') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:33.521144') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:33.521144') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.8ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["data", "{\"article_id\":980190962,\"id\":1}"], ["obj_class", "Comment"], ["obj_id", 1], ["event", "destroyed"], ["created_at", "2016-08-09 12:54:34.551011"], ["updated_at", "2016-08-09 12:54:34.551011"]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A34.519414%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:34.519414+02:00"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:34.519414') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:34.519414') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:34.519414') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "articles";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM sqlite_sequence where name = 'articles';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "comments";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'comments';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM "admins";[0m
+ [1m[35m (0.4ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'admins';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "loco_notifications";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'loco_notifications';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "users";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM "connections";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'connections';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "admins"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$JHpL6lXz0PurDEq81blKuuVLNyBl9785X4NX9hWtscxNBqKHswRlG', '2016-08-09 12:54:35', '2016-08-09 12:54:35', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$5xDeFKZr4RJTv1xbYxAoAOyNRHSRjQwRi/CN72xdayO/p.t4ld9W6', '2016-08-09 12:54:35', '2016-08-09 12:54:35', 298486374)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "articles"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:35.000000', '2016-08-09 12:54:35', '2016-08-09 12:54:35', 980190962, 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:35', '2016-08-09 12:54:35', 298486374, 872278135)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$Tr1ZTKBFS7b0y.XAUkZdZOXxszqBCR8/.pb58wQb/qq9MqPA6peIW', '2016-08-02 12:54:35.000000', '2016-08-09 12:54:35', '2016-08-09 12:54:35', 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$.2bNk.MocvjjhhfKY3L7Ru1S0UT235wKktAygDIMkdECTQr10LcQS', '2016-08-09 12:54:35', '2016-08-09 12:54:35', 15595101)
+ [1m[36m (1.0ms)[0m [1mcommit transaction[0m
+----------------------------------------------------------------
+User::ArticlesListTest: test_should_update_published_on_the_list
+----------------------------------------------------------------
+Started GET "/" for 127.0.0.1 at 2016-08-09 14:54:35 +0200
+Processing by Main::PagesController#index as HTML
+ Rendered main/pages/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:35 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:35 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:35 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:35 +0200
+Started GET "/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:35 +0200
+Processing by Main::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 3 OFFSET 0[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered main/articles/_article_for_list.json.jbuilder (1.6ms)
+ Rendered main/articles/index.json.jbuilder (4.9ms)
+Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.9ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:35.714017') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:35.715958') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:35.718165') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 1.5ms)
+Started GET "/user/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:35 +0200
+Processing by User::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered user/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:35 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:35.811892') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:35.813074') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:35.813929') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+Started POST "/user/sessions" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Processing by User::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@example.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@example.com"]]
+Redirected to http://127.0.0.1:52002/user
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/user" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ? [["user_id", 872278135]]
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0[0m [["user_id", 872278135]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.3ms)
+ Rendered user/articles/index.json.jbuilder (4.8ms)
+Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 0.8ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:36.260909') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:36.262540') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:36.263772') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+Started GET "/user/articles" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Processing by User::ArticlesController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ Rendered user/articles/index.html.erb within layouts/application (0.2ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Started GET "/user/articles?page=1" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Processing by User::ArticlesController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = ?[0m [["user_id", 872278135]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["user_id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered user/articles/index.json.jbuilder (7.8ms)
+Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:36 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:36.537214') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:36.538394') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:36.539844') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "articles" SET "published_at" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["published_at", "2016-08-09 12:54:36.644716"], ["updated_at", "2016-08-09 12:54:36.645514"], ["id", 298486374]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "recipient_class", "recipient_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["data", "{\"id\":298486374}"], ["obj_class", "Article"], ["obj_id", 298486374], ["event", "updated"], ["recipient_class", "User"], ["recipient_id", 872278135], ["created_at", "2016-08-09 12:54:36.650044"], ["updated_at", "2016-08-09 12:54:36.650044"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A36.540784%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:37 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:36.540784+02:00"}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:36.540784') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:36.540784') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:36.540784') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
+Started GET "/user/articles/298486374?abbr=true" for 127.0.0.1 at 2016-08-09 14:54:37 +0200
+Processing by User::ArticlesController#show as JSON
+ Parameters: {"abbr"=>"true", "id"=>"298486374"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = ? AND "articles"."id" = ? LIMIT 1 [["user_id", 872278135], ["id", 298486374]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 298486374]]
+ Rendered user/articles/_article_for_list.json.jbuilder (1.3ms)
+ Rendered user/articles/show.json.jbuilder (1.8ms)
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.4ms)
+ [1m[35m (1.0ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$497DOLg2pqR86ApFaUltR.AJOR3YrNfwSEBGW7r.W.ONJA1MmTnni', '2016-08-09 12:54:37', '2016-08-09 12:54:37', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$iR0B8JJqDvxpCG2fsmvUaegxkHY232Pfnw0UjwXtcjukNA7uH5F8W', '2016-08-09 12:54:37', '2016-08-09 12:54:37', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:37.000000', '2016-08-09 12:54:37', '2016-08-09 12:54:37', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:37', '2016-08-09 12:54:37', 298486374, 872278135)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$y7.ExTm6BUreF8M/yJJbaOZkwRDLK6opxK7c/pO.r/IaidDAXI6fi', '2016-08-02 12:54:37.000000', '2016-08-09 12:54:37', '2016-08-09 12:54:37', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$ds94YjSP6bf0YAtEikRNUOd6atAowDq8pl5Ix4thepMk31yrrL18W', '2016-08-09 12:54:37', '2016-08-09 12:54:37', 15595101)[0m
+ [1m[35m (1.0ms)[0m commit transaction
+------------------------------------------------------------
+Admin::ReviewArticleTest: test_should_auto_update_an_article
+------------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:37 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:37 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:37 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:37 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:37 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:37 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:37.743274') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:37.744336') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:37.745178') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:52002/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users"
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0[0m
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/_user.json.jbuilder (0.2ms)
+ Rendered admin/users/index.json.jbuilder (2.8ms)
+Completed 200 OK in 18ms (Views: 12.9ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.201376') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.203151') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.204447') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.3ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (2.3ms)
+ Rendered admin/articles/published.json.jbuilder (5.7ms)
+Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 1.3ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.337992') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.6ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.340165') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.341681') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.5ms)
+Started GET "/admin/articles/980190962/edit" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Processing by Admin::ArticlesController#edit as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/articles/edit.html.erb within layouts/application (4.3ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.1ms)
+Started GET "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article.json.jbuilder (1.8ms)
+ Rendered admin/articles/show.json.jbuilder (5.2ms)
+Completed 200 OK in 13ms (Views: 5.7ms | ActiveRecord: 0.7ms)
+Started GET "/admin/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Processing by Admin::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered admin/comments/index.json.jbuilder (1.1ms)
+Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:38 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.471943') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.3ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.473282') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.474383') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms)
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "articles" SET "title" = ?, "text" = ?, "updated_at" = ? WHERE "articles"."id" = ? [["title", "AGtTRA"], ["text", "TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT...TESTING_SUPPORT..."], ["updated_at", "2016-08-09 12:54:38.499736"], ["id", 980190962]]
+ [1m[36m (0.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "loco_notifications" ("data", "obj_class", "obj_id", "event", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["data", "{\"id\":980190962}"], ["obj_class", "Article"], ["obj_id", 980190962], ["event", "updated"], ["created_at", "2016-08-09 12:54:38.503827"], ["updated_at", "2016-08-09 12:54:38.503827"]]
+ [1m[35m (1.0ms)[0m commit transaction
+Started GET "/notification-center?synced_at=2016-08-09T14%3A54%3A38.475724%2B02%3A00" for 127.0.0.1 at 2016-08-09 14:54:39 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>"2016-08-09T14:54:38.475724+02:00"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.7ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.5ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.475724') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (2.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.475724') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:38.475724') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 4.0ms)
+Started GET "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:54:39 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ Rendered admin/articles/_article.json.jbuilder (2.1ms)
+ Rendered admin/articles/show.json.jbuilder (2.9ms)
+Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.5ms)
+ [1m[35m (2.9ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "admins";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.9ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "admins"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@gmail.com', '$2a$04$1yidMLL0ENBLRyXUICk0ze6CVatLRIP0JRqUgocyeRe9aoI/BlKm2', '2016-08-09 12:54:39', '2016-08-09 12:54:39', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('zbigniew.humeniuk@motteq.com', '$2a$04$GpXTzmNvK6oIjueO0bybNeilq.zAuGiDYarrxgomqNvrOX/Hro5b6', '2016-08-09 12:54:39', '2016-08-09 12:54:39', 298486374)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "articles"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "articles" ("title", "text", "published_at", "created_at", "updated_at", "id", "user_id") VALUES ('A Guide to Testing Rails Applications', 'Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you''ll need to understand how to set up this database and populate it with sample data.', '2016-08-08 12:54:39.000000', '2016-08-09 12:54:39', '2016-08-09 12:54:39', 980190962, 872278135)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "articles" ("title", "text", "created_at", "updated_at", "id", "user_id") VALUES ('What is Active Record?', 'Active Record is the M in MVC - the model - which is the layer of the system responsible for representing business data and logic. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.', '2016-08-09 12:54:39', '2016-08-09 12:54:39', 298486374, 872278135)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("username", "email", "password_digest", "confirmed_at", "created_at", "updated_at", "id") VALUES ('zbig', 'zbigniew.humeniuk@example.com', '$2a$04$8HmtAkhokfmRub2w8Z7qleEj9slLtB3FfpRqFpRdp59agJqPCAr9.', '2016-08-02 12:54:39.000000', '2016-08-09 12:54:39', '2016-08-09 12:54:39', 872278135)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("username", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('jane', 'jane@example.com', '$2a$04$g37vhwMp9Y2hBsPla.sK.efH2Hbgu6uUY919ANxHRBydfPNIEC/6q', '2016-08-09 12:54:39', '2016-08-09 12:54:39', 15595101)[0m
+ [1m[35m (0.9ms)[0m commit transaction
+-------------------------------------------------------
+Admin::ReviewArticleTest: test_should_update_an_article
+-------------------------------------------------------
+Started GET "/admin/sessions/new" for 127.0.0.1 at 2016-08-09 14:54:39 +0200
+Processing by Admin::SessionsController#new as HTML
+ Rendered shared/_sign_in_form.html.erb (0.5ms)
+ Rendered admin/sessions/new.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ [1m[36mAdmin Load (0.2ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.2ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:39 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:39 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:39 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:39 +0200
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.073081') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.074803') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.076029') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.5ms)
+Started POST "/admin/sessions" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "email"=>"zbigniew.humeniuk@motteq.com", "password"=>"[FILTERED]", "commit"=>"Sign In"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT 1[0m [["email", "zbigniew.humeniuk@motteq.com"]]
+Redirected to http://127.0.0.1:52002/admin
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+Started GET "/admin" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Admin::UsersController#index as HTML
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/users/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Started GET "/admin/users?page=1" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Admin::UsersController#index as JSON
+ Parameters: {"page"=>"1"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" ORDER BY created_at DESC LIMIT 10 OFFSET 0[0m
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/_user.json.jbuilder (0.3ms)
+ Rendered admin/users/index.json.jbuilder (5.6ms)
+Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.7ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 872278135]]
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.520515') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.521933') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.522947') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)
+Started GET "/admin/articles/published" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Admin::ArticlesController#published as HTML
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ Rendered admin/articles/published.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
+Started GET "/admin/articles/published?page=1" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Admin::ArticlesController#published as JSON
+ Parameters: {"page"=>"1"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "articles" WHERE ("articles"."published_at" IS NOT NULL)[0m
+ [1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles" WHERE ("articles"."published_at" IS NOT NULL) ORDER BY published_at DESC LIMIT 4 OFFSET 0
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article_for_list.json.jbuilder (1.4ms)
+ Rendered admin/articles/published.json.jbuilder (5.2ms)
+Completed 200 OK in 12ms (Views: 4.9ms | ActiveRecord: 1.2ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.4ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.650043') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.5ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.651992') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.654017') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.7ms)
+Started GET "/admin/articles/980190962/edit" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Admin::ArticlesController#edit as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mAdmin Load (0.2ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/articles/edit.html.erb within layouts/application (3.6ms)
+ Rendered layouts/_flash.html.erb (0.2ms)
+Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.2ms)
+Started GET "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article.json.jbuilder (1.4ms)
+ Rendered admin/articles/show.json.jbuilder (2.1ms)
+Completed 200 OK in 10ms (Views: 2.5ms | ActiveRecord: 0.8ms)
+Started GET "/admin/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Admin::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered admin/comments/index.json.jbuilder (1.0ms)
+Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:40 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.784360') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.2ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.785630') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.2ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:40.786566') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
+Started PUT "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:54:41 +0200
+Processing by Admin::ArticlesController#update as JSON
+ Parameters: {"article"=>{"title"=>"A Guide to Testing Rails Applications", "text"=>"Testing support was woven into the Rails fabric from the beginning. Just about every Rails application interacts heavily with a database and, as a result, your tests will need a database to interact with as well. To write efficient tests, you'll need to understand how to set up this database and populate it with sample data.", "created_at"=>"Tue Aug 09 2016 14:54:39 GMT+0200 (CEST)", "updated_at"=>"Tue Aug 09 2016 14:54:39 GMT+0200 (CEST)", "comments_count"=>"0", "published_at"=>"Mon Aug 08 2016 14:54:39 GMT+0200 (CEST)", "published"=>"0", "admin_review"=>"Damn good article", "admin_rate"=>"5", "category_id"=>"8", "admin_review_started_at"=>"1470747280786"}, "id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Unpermitted parameters: title, text, created_at, updated_at, comments_count, published_at
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "articles" SET "admin_review" = ?, "category_id" = ?, "admin_rate" = ?, "published_at" = ?, "updated_at" = ?, "admin_review_time" = ? WHERE "articles"."id" = ?[0m [["admin_review", "Damn good article"], ["category_id", 8], ["admin_rate", 5], ["published_at", nil], ["updated_at", "2016-08-09 12:54:41.338076"], ["admin_review_time", 0.55], ["id", 980190962]]
+ [1m[35m (0.7ms)[0m commit transaction
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.8ms)
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Started GET "/admin/articles/980190962/edit" for 127.0.0.1 at 2016-08-09 14:54:41 +0200
+Processing by Admin::ArticlesController#edit as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ Rendered admin/articles/edit.html.erb within layouts/application (5.5ms)
+ Rendered layouts/_flash.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.1ms)
+Started GET "/assets/application.css" for 127.0.0.1 at 2016-08-09 14:54:41 +0200
+Started GET "/assets/application.js" for 127.0.0.1 at 2016-08-09 14:54:41 +0200
+Started GET "/assets/global.css" for 127.0.0.1 at 2016-08-09 14:54:41 +0200
+Started GET "/assets/scaffold.css" for 127.0.0.1 at 2016-08-09 14:54:41 +0200
+Started GET "/admin/articles/980190962" for 127.0.0.1 at 2016-08-09 14:54:41 +0200
+Processing by Admin::ArticlesController#show as JSON
+ Parameters: {"id"=>"980190962"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.2ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (872278135)[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ? [["article_id", 980190962]]
+ Rendered admin/articles/_article.json.jbuilder (1.5ms)
+ Rendered admin/articles/show.json.jbuilder (2.4ms)
+Completed 200 OK in 9ms (Views: 2.9ms | ActiveRecord: 0.7ms)
+Started GET "/admin/articles/980190962/comments?page=1" for 127.0.0.1 at 2016-08-09 14:54:41 +0200
+Processing by Admin::CommentsController#index as JSON
+ Parameters: {"page"=>"1", "article_id"=>"980190962"}
+ [1m[36mAdmin Load (0.1ms)[0m [1mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1[0m [["id", 298486374]]
+ [1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "comments" WHERE "comments"."article_id" = ?[0m [["article_id", 980190962]]
+ [1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."article_id" = ? ORDER BY created_at ASC LIMIT 5 OFFSET 0 [["article_id", 980190962]]
+ Rendered admin/comments/index.json.jbuilder (0.9ms)
+Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.5ms)
+Started GET "/notification-center?synced_at=" for 127.0.0.1 at 2016-08-09 14:54:41 +0200
+Processing by Loco::NotificationCenterController#index as */*
+ Parameters: {"synced_at"=>""}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 872278135]]
+ [1m[35mAdmin Load (0.1ms)[0m SELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT 1 [["id", 298486374]]
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:41.518651') AND "loco_notifications"."recipient_class" IS NULL AND "loco_notifications"."recipient_id" IS NULL AND "loco_notifications"."recipient_token" IS NULL ORDER BY created_at ASC LIMIT 1000[0m
+ [1m[35mLoco::Notification Load (0.4ms)[0m SELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:41.520093') AND ((recipient_class = 'User' AND recipient_id = 872278135) OR (recipient_class = 'User' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000
+ [1m[36mLoco::Notification Load (0.3ms)[0m [1mSELECT "loco_notifications".* FROM "loco_notifications" WHERE (created_at > '2016-08-09 12:54:41.521466') AND ((recipient_class = 'Admin' AND recipient_id = 298486374) OR (recipient_class = 'Admin' AND recipient_id IS NULL)) ORDER BY created_at ASC LIMIT 1000[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.2ms)
+ [1m[35m (1.1ms)[0m DELETE FROM "articles";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM sqlite_sequence where name = 'articles';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "comments";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'comments';[0m
+ [1m[35m (0.7ms)[0m DELETE FROM "admins";
+ [1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM sqlite_sequence where name = 'admins';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "loco_notifications";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'loco_notifications';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "users";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
+ [1m[36m (0.8ms)[0m [1mDELETE FROM "connections";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'connections';[0m