[1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_truth ------------------------------- [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-02 18:21:10.771805"], ["email", "jerry"], ["updated_at", "2014-11-02 18:21:10.771805"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (26.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-02 18:21:10.781945"], ["email", "george"], ["updated_at", "2014-11-02 18:21:10.781945"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.3ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (2.6ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sender_id" integer, "recipient_id" integer, "sender_deleted" boolean DEFAULT 'f', "recipient_deleted" boolean DEFAULT 'f', "subject" varchar, "body" text, "read_at" datetime, "created_at" datetime, "updated_at" datetime) [1m[36m (2.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "email" varchar) [0m [1m[35m (2.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (2.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (3.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141102184628') [1m[36m (3.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141102032530')[0m [1m[35m (2.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141102181658') [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-02 18:47:14.088564"], ["email", "jerry"], ["updated_at", "2014-11-02 18:47:14.088564"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-02 18:47:14.094545"], ["email", "george"], ["updated_at", "2014-11-02 18:47:14.094545"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-02 18:48:58.483883"], ["email", "jerry"], ["updated_at", "2014-11-02 18:48:58.483883"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-02 18:48:58.492940"], ["email", "george"], ["updated_at", "2014-11-02 18:48:58.492940"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-02 18:57:50.689672"], ["email", "jerry"], ["updated_at", "2014-11-02 18:57:50.689672"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-02 18:57:50.795818"], ["email", "george"], ["updated_at", "2014-11-02 18:57:50.795818"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-02 18:59:51.100220"], ["email", "jerry"], ["updated_at", "2014-11-02 18:59:51.100220"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-02 18:59:51.140803"], ["email", "george"], ["updated_at", "2014-11-02 18:59:51.140803"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-02 19:00:41.345675"], ["email", "jerry"], ["updated_at", "2014-11-02 19:00:41.345675"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-02 19:00:41.385875"], ["email", "george"], ["updated_at", "2014-11-02 19:00:41.385875"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-02 19:02:28.159304"], ["email", "jerry"], ["updated_at", "2014-11-02 19:02:28.159304"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-02 19:02:28.232466"], ["email", "george"], ["updated_at", "2014-11-02 19:02:28.232466"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (28.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-02 19:04:35.221185"], ["email", "jerry"], ["updated_at", "2014-11-02 19:04:35.221185"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-02 19:04:35.347561"], ["email", "george"], ["updated_at", "2014-11-02 19:04:35.347561"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-02 19:04:35.653734"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-02 19:04:35.653734"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-02 19:04:35.671615"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-02 19:04:35.671615"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (20.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:40:41.570972"], ["email", "jerry"], ["updated_at", "2014-11-03 14:40:41.570972"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:40:41.657284"], ["email", "george"], ["updated_at", "2014-11-03 14:40:41.657284"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:40:41.731471"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:40:41.731471"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:40:41.736209"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:40:41.736209"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (24.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:40:41.764909"], ["email", "jerry"], ["updated_at", "2014-11-03 14:40:41.764909"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:40:41.768009"], ["email", "george"], ["updated_at", "2014-11-03 14:40:41.768009"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:40:41.771346"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:40:41.771346"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.2ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:46:10.477536"], ["email", "jerry"], ["updated_at", "2014-11-03 14:46:10.477536"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:46:10.516130"], ["email", "george"], ["updated_at", "2014-11-03 14:46:10.516130"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:46:10.556469"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:46:10.556469"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" IN (1, NULL) [1m[36m (3.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:46:10.568407"], ["email", "jerry"], ["updated_at", "2014-11-03 14:46:10.568407"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:46:10.571155"], ["email", "george"], ["updated_at", "2014-11-03 14:46:10.571155"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:46:10.574602"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:46:10.574602"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:46:10.578379"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:46:10.578379"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:50:02.185145"], ["email", "jerry"], ["updated_at", "2014-11-03 14:50:02.185145"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:50:02.230295"], ["email", "george"], ["updated_at", "2014-11-03 14:50:02.230295"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:50:02.264594"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:50:02.264594"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" IN (1, NULL) [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:50:02.273544"], ["email", "jerry"], ["updated_at", "2014-11-03 14:50:02.273544"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:50:02.275951"], ["email", "george"], ["updated_at", "2014-11-03 14:50:02.275951"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:50:02.278856"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:50:02.278856"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:50:02.281718"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:50:02.281718"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:53:19.856729"], ["email", "jerry"], ["updated_at", "2014-11-03 14:53:19.856729"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:53:19.897381"], ["email", "george"], ["updated_at", "2014-11-03 14:53:19.897381"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:53:19.931412"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:53:19.931412"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:53:19.935000"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:53:19.935000"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:53:19.940042"], ["email", "jerry"], ["updated_at", "2014-11-03 14:53:19.940042"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:53:19.942441"], ["email", "george"], ["updated_at", "2014-11-03 14:53:19.942441"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:53:19.945293"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:53:19.945293"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" IN (1, NULL) [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:53:45.711565"], ["email", "jerry"], ["updated_at", "2014-11-03 14:53:45.711565"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:53:45.748927"], ["email", "george"], ["updated_at", "2014-11-03 14:53:45.748927"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:53:45.782198"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:53:45.782198"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:53:45.785872"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:53:45.785872"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (5.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:53:45.794554"], ["email", "jerry"], ["updated_at", "2014-11-03 14:53:45.794554"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:53:45.796975"], ["email", "george"], ["updated_at", "2014-11-03 14:53:45.796975"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:53:45.800092"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:53:45.800092"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" IN (1, NULL) [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:54:53.395544"], ["email", "jerry"], ["updated_at", "2014-11-03 14:54:53.395544"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:54:53.437022"], ["email", "george"], ["updated_at", "2014-11-03 14:54:53.437022"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:54:53.470133"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:54:53.470133"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:54:53.473682"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:54:53.473682"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:54:53.478974"], ["email", "jerry"], ["updated_at", "2014-11-03 14:54:53.478974"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:54:53.481421"], ["email", "george"], ["updated_at", "2014-11-03 14:54:53.481421"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:54:53.484316"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:54:53.484316"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" IN (1, NULL) [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:59:23.784378"], ["email", "jerry"], ["updated_at", "2014-11-03 14:59:23.784378"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:59:23.822106"], ["email", "george"], ["updated_at", "2014-11-03 14:59:23.822106"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:59:23.857326"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:59:23.857326"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:59:23.860918"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:59:23.860918"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:59:23.866217"], ["email", "jerry"], ["updated_at", "2014-11-03 14:59:23.866217"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:59:23.868649"], ["email", "george"], ["updated_at", "2014-11-03 14:59:23.868649"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:59:23.871901"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:59:23.871901"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2))[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:59:49.932703"], ["email", "jerry"], ["updated_at", "2014-11-03 14:59:49.932703"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:59:49.968516"], ["email", "george"], ["updated_at", "2014-11-03 14:59:49.968516"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:59:50.004902"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:59:50.004902"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:59:50.008544"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:59:50.008544"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-03 14:59:50.015141"], ["email", "jerry"], ["updated_at", "2014-11-03 14:59:50.015141"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-03 14:59:50.017580"], ["email", "george"], ["updated_at", "2014-11-03 14:59:50.017580"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-03 14:59:50.020440"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-03 14:59:50.020440"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.3ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:29:45.217883"], ["email", "jerry"], ["updated_at", "2014-11-04 14:29:45.217883"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:29:45.288119"], ["email", "george"], ["updated_at", "2014-11-04 14:29:45.288119"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:29:45.359738"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:29:45.359738"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (23.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:29:45.424845"], ["email", "jerry"], ["updated_at", "2014-11-04 14:29:45.424845"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:29:45.427996"], ["email", "george"], ["updated_at", "2014-11-04 14:29:45.427996"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:29:45.431238"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:29:45.431238"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:29:45.435564"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:29:45.435564"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:40:41.816560"], ["email", "jerry"], ["updated_at", "2014-11-04 14:40:41.816560"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:40:41.897801"], ["email", "george"], ["updated_at", "2014-11-04 14:40:41.897801"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:40:42.056494"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:40:42.056494"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (25.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:40:42.170591"], ["email", "jerry"], ["updated_at", "2014-11-04 14:40:42.170591"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:40:42.173589"], ["email", "george"], ["updated_at", "2014-11-04 14:40:42.173589"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:40:42.177071"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:40:42.177071"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (41.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:40:42.221631"], ["email", "jerry"], ["updated_at", "2014-11-04 14:40:42.221631"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:40:42.224404"], ["email", "george"], ["updated_at", "2014-11-04 14:40:42.224404"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:40:42.227820"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:40:42.227820"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:40:42.231506"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:40:42.231506"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (18.5ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:41:28.216672"], ["email", "jerry"], ["updated_at", "2014-11-04 14:41:28.216672"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:41:28.256615"], ["email", "george"], ["updated_at", "2014-11-04 14:41:28.256615"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:41:28.290854"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:41:28.290854"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:41:28.294732"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:41:28.294732"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:41:28.300271"], ["email", "jerry"], ["updated_at", "2014-11-04 14:41:28.300271"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:41:28.303457"], ["email", "george"], ["updated_at", "2014-11-04 14:41:28.303457"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:41:28.306659"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:41:28.306659"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-04 14:41:28.324825"], ["updated_at", "2014-11-04 14:41:28.325651"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:41:28.367086"], ["email", "jerry"], ["updated_at", "2014-11-04 14:41:28.367086"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:41:28.370812"], ["email", "george"], ["updated_at", "2014-11-04 14:41:28.370812"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:41:28.374425"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:41:28.374425"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:41:28.380376"], ["email", "jerry"], ["updated_at", "2014-11-04 14:41:28.380376"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:41:28.382885"], ["email", "george"], ["updated_at", "2014-11-04 14:41:28.382885"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:41:28.386779"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:41:28.386779"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:45:15.753072"], ["email", "jerry"], ["updated_at", "2014-11-04 14:45:15.753072"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:45:15.793736"], ["email", "george"], ["updated_at", "2014-11-04 14:45:15.793736"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:45:15.831394"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:15.831394"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:45:15.835408"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:15.835408"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:45:15.841171"], ["email", "jerry"], ["updated_at", "2014-11-04 14:45:15.841171"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:45:15.844035"], ["email", "george"], ["updated_at", "2014-11-04 14:45:15.844035"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:45:15.847490"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:15.847490"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:45:15.853907"], ["email", "jerry"], ["updated_at", "2014-11-04 14:45:15.853907"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:45:15.856669"], ["email", "george"], ["updated_at", "2014-11-04 14:45:15.856669"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:45:15.860668"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:15.860668"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-04 14:45:15.879526"], ["updated_at", "2014-11-04 14:45:15.880603"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:45:15.897769"], ["email", "jerry"], ["updated_at", "2014-11-04 14:45:15.897769"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:45:15.900880"], ["email", "george"], ["updated_at", "2014-11-04 14:45:15.900880"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:45:15.904273"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:15.904273"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:45:42.027011"], ["email", "jerry"], ["updated_at", "2014-11-04 14:45:42.027011"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:45:42.068987"], ["email", "george"], ["updated_at", "2014-11-04 14:45:42.068987"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:45:42.109296"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:42.109296"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:45:42.136021"], ["email", "jerry"], ["updated_at", "2014-11-04 14:45:42.136021"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:45:42.139528"], ["email", "george"], ["updated_at", "2014-11-04 14:45:42.139528"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:45:42.143632"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:42.143632"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:45:42.150264"], ["email", "jerry"], ["updated_at", "2014-11-04 14:45:42.150264"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:45:42.153278"], ["email", "george"], ["updated_at", "2014-11-04 14:45:42.153278"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:45:42.158657"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:42.158657"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-04 14:45:42.163234"], ["updated_at", "2014-11-04 14:45:42.163927"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:45:42.183781"], ["email", "jerry"], ["updated_at", "2014-11-04 14:45:42.183781"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:45:42.187161"], ["email", "george"], ["updated_at", "2014-11-04 14:45:42.187161"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:45:42.193896"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:42.193896"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:45:42.200003"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:45:42.200003"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.2ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:47:52.865021"], ["email", "jerry"], ["updated_at", "2014-11-04 14:47:52.865021"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:47:52.905614"], ["email", "george"], ["updated_at", "2014-11-04 14:47:52.905614"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:47:52.940584"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:47:52.940584"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (14.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:47:52.976124"], ["email", "jerry"], ["updated_at", "2014-11-04 14:47:52.976124"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:47:52.979257"], ["email", "george"], ["updated_at", "2014-11-04 14:47:52.979257"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:47:52.983185"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:47:52.983185"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-04 14:47:52.988624"], ["updated_at", "2014-11-04 14:47:52.989337"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:47:53.005352"], ["email", "jerry"], ["updated_at", "2014-11-04 14:47:53.005352"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:47:53.008106"], ["email", "george"], ["updated_at", "2014-11-04 14:47:53.008106"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:47:53.012098"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:47:53.012098"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:47:53.016146"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:47:53.016146"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:47:53.021431"], ["email", "jerry"], ["updated_at", "2014-11-04 14:47:53.021431"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:47:53.023963"], ["email", "george"], ["updated_at", "2014-11-04 14:47:53.023963"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:47:53.027642"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:47:53.027642"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:51:22.950017"], ["email", "jerry"], ["updated_at", "2014-11-04 14:51:22.950017"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:51:22.993325"], ["email", "george"], ["updated_at", "2014-11-04 14:51:22.993325"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:51:23.026791"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:51:23.026791"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:51:23.030607"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:51:23.030607"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:51:23.036097"], ["email", "jerry"], ["updated_at", "2014-11-04 14:51:23.036097"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:51:23.038606"], ["email", "george"], ["updated_at", "2014-11-04 14:51:23.038606"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:51:23.041854"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:51:23.041854"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:51:23.046997"], ["email", "jerry"], ["updated_at", "2014-11-04 14:51:23.046997"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:51:23.049575"], ["email", "george"], ["updated_at", "2014-11-04 14:51:23.049575"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:51:23.052728"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:51:23.052728"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-04 14:51:23.070961"], ["updated_at", "2014-11-04 14:51:23.071848"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:51:23.088075"], ["email", "jerry"], ["updated_at", "2014-11-04 14:51:23.088075"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:51:23.090710"], ["email", "george"], ["updated_at", "2014-11-04 14:51:23.090710"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:51:23.095182"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:51:23.095182"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:52:11.540496"], ["email", "jerry"], ["updated_at", "2014-11-04 14:52:11.540496"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:52:11.578952"], ["email", "george"], ["updated_at", "2014-11-04 14:52:11.578952"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:52:11.613276"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:52:11.613276"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-04 14:52:11.631194"], ["updated_at", "2014-11-04 14:52:11.632305"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:52:11.648672"], ["email", "jerry"], ["updated_at", "2014-11-04 14:52:11.648672"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:52:11.651505"], ["email", "george"], ["updated_at", "2014-11-04 14:52:11.651505"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:52:11.654759"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:52:11.654759"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:52:11.660201"], ["email", "jerry"], ["updated_at", "2014-11-04 14:52:11.660201"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:52:11.662773"], ["email", "george"], ["updated_at", "2014-11-04 14:52:11.662773"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:52:11.665869"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:52:11.665869"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-04 14:52:11.669487"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:52:11.675231"], ["email", "jerry"], ["updated_at", "2014-11-04 14:52:11.675231"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:52:11.677987"], ["email", "george"], ["updated_at", "2014-11-04 14:52:11.677987"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:52:11.681145"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:52:11.681145"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:52:11.686062"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:52:11.686062"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:52:11.691394"], ["email", "jerry"], ["updated_at", "2014-11-04 14:52:11.691394"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:52:11.693991"], ["email", "george"], ["updated_at", "2014-11-04 14:52:11.693991"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:52:11.697214"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:52:11.697214"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:54:13.702346"], ["email", "jerry"], ["updated_at", "2014-11-04 14:54:13.702346"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:54:13.744920"], ["email", "george"], ["updated_at", "2014-11-04 14:54:13.744920"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:54:13.778820"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:54:13.778820"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-04 14:54:13.782666"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:54:13.803078"], ["email", "jerry"], ["updated_at", "2014-11-04 14:54:13.803078"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:54:13.806823"], ["email", "george"], ["updated_at", "2014-11-04 14:54:13.806823"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:54:13.811388"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:54:13.811388"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:54:13.818417"], ["email", "jerry"], ["updated_at", "2014-11-04 14:54:13.818417"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:54:13.822450"], ["email", "george"], ["updated_at", "2014-11-04 14:54:13.822450"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:54:13.825807"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:54:13.825807"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:54:13.844324"], ["email", "jerry"], ["updated_at", "2014-11-04 14:54:13.844324"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:54:13.847322"], ["email", "george"], ["updated_at", "2014-11-04 14:54:13.847322"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:54:13.851529"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:54:13.851529"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-04 14:54:13.856827"], ["updated_at", "2014-11-04 14:54:13.857554"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:54:13.863000"], ["email", "jerry"], ["updated_at", "2014-11-04 14:54:13.863000"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:54:13.865726"], ["email", "george"], ["updated_at", "2014-11-04 14:54:13.865726"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:54:13.869115"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:54:13.869115"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:54:13.872702"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:54:13.872702"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:54:13.878151"], ["email", "jerry"], ["updated_at", "2014-11-04 14:54:13.878151"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:54:13.881008"], ["email", "george"], ["updated_at", "2014-11-04 14:54:13.881008"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:54:13.884733"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:54:13.884733"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-04 14:54:13.888064"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:58:36.344873"], ["email", "jerry"], ["updated_at", "2014-11-04 14:58:36.344873"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:58:36.385615"], ["email", "george"], ["updated_at", "2014-11-04 14:58:36.385615"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:58:36.424434"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:58:36.424434"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-04 14:58:36.428682"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (61.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:58:36.509601"], ["email", "jerry"], ["updated_at", "2014-11-04 14:58:36.509601"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:58:36.513116"], ["email", "george"], ["updated_at", "2014-11-04 14:58:36.513116"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:58:36.518908"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:58:36.518908"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-04 14:58:36.523649"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (75.1ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:58:36.605446"], ["email", "jerry"], ["updated_at", "2014-11-04 14:58:36.605446"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:58:36.609070"], ["email", "george"], ["updated_at", "2014-11-04 14:58:36.609070"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:58:36.615734"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:58:36.615734"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-04 14:58:36.620315"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (4.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:58:36.714511"], ["email", "jerry"], ["updated_at", "2014-11-04 14:58:36.714511"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:58:36.719168"], ["email", "george"], ["updated_at", "2014-11-04 14:58:36.719168"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:58:36.725497"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:58:36.725497"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-04 14:58:36.752104"], ["updated_at", "2014-11-04 14:58:36.753902"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (16.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:58:36.776419"], ["email", "jerry"], ["updated_at", "2014-11-04 14:58:36.776419"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:58:36.781019"], ["email", "george"], ["updated_at", "2014-11-04 14:58:36.781019"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:58:36.787946"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:58:36.787946"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:58:36.845477"], ["email", "jerry"], ["updated_at", "2014-11-04 14:58:36.845477"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:58:36.850151"], ["email", "george"], ["updated_at", "2014-11-04 14:58:36.850151"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:58:36.859484"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:58:36.859484"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (18.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-04 14:58:36.883809"], ["email", "jerry"], ["updated_at", "2014-11-04 14:58:36.883809"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-04 14:58:36.889770"], ["email", "george"], ["updated_at", "2014-11-04 14:58:36.889770"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:58:36.895573"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:58:36.895573"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-04 14:58:36.900221"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-04 14:58:36.900221"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (20.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:08:30.064671"], ["email", "jerry"], ["updated_at", "2014-11-06 15:08:30.064671"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:08:30.133602"], ["email", "george"], ["updated_at", "2014-11-06 15:08:30.133602"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:08:30.208180"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.208180"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:08:30.257969"], ["updated_at", "2014-11-06 15:08:30.258911"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:08:30.277097"], ["email", "jerry"], ["updated_at", "2014-11-06 15:08:30.277097"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:08:30.279630"], ["email", "george"], ["updated_at", "2014-11-06 15:08:30.279630"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:08:30.282803"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.282803"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:08:30.285867"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:08:30.333972"], ["email", "jerry"], ["updated_at", "2014-11-06 15:08:30.333972"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:08:30.337021"], ["email", "george"], ["updated_at", "2014-11-06 15:08:30.337021"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:08:30.340229"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.340229"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:08:30.343799"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:08:30.349417"], ["email", "jerry"], ["updated_at", "2014-11-06 15:08:30.349417"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:08:30.351798"], ["email", "george"], ["updated_at", "2014-11-06 15:08:30.351798"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:08:30.354651"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.354651"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:08:30.357126"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:08:30.363095"], ["email", "jerry"], ["updated_at", "2014-11-06 15:08:30.363095"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:08:30.365519"], ["email", "george"], ["updated_at", "2014-11-06 15:08:30.365519"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:08:30.402600"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.402600"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:08:30.406224"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.406224"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:08:30.412172"], ["email", "jerry"], ["updated_at", "2014-11-06 15:08:30.412172"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:08:30.414674"], ["email", "george"], ["updated_at", "2014-11-06 15:08:30.414674"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:08:30.417678"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.417678"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:08:30.425751"], ["email", "jerry"], ["updated_at", "2014-11-06 15:08:30.425751"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:08:30.428152"], ["email", "george"], ["updated_at", "2014-11-06 15:08:30.428152"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:08:30.431054"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:08:30.431054"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.590671"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.590671"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.628644"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.628644"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.661852"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.661852"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.664977"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (5.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.697631"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.697631"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.700164"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.700164"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.703460"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.703460"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.706247"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.718410"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.718410"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.720885"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.720885"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.723805"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.723805"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.738054"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.738054"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.740530"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.740530"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.743516"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.743516"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:28:10.749959"], ["updated_at", "2014-11-06 15:28:10.750724"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.787028"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.787028"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.789698"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.789698"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.792802"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.792802"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.795494"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.802732"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.802732"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.805153"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.805153"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.808031"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.808031"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.813136"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.813136"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.815531"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.815531"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.818386"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.818386"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.822048"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.822048"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.829178"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.829178"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.831539"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.831539"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.834383"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.834383"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 15:28:10.839113"], ["updated_at", "2014-11-06 15:28:10.839678"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.845173"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.845173"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.847520"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.847520"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.850317"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.850317"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.852770"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.858323"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.858323"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.860699"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.860699"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.864131"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.864131"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.869197"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.869197"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.871532"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.871532"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.874322"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.874322"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.876965"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.885778"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.885778"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.888117"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.888117"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.890971"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.890971"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.893944"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.893944"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.899868"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.899868"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.902204"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.902204"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.905823"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.905823"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:28:10.908351"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:28:10.915308"], ["email", "jerry"], ["updated_at", "2014-11-06 15:28:10.915308"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:28:10.917690"], ["email", "george"], ["updated_at", "2014-11-06 15:28:10.917690"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:28:10.920570"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:28:10.920570"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:27.840762"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:27.840762"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:27.878276"], ["email", "george"], ["updated_at", "2014-11-06 15:32:27.878276"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:27.912539"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:27.912539"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:32:27.929333"], ["updated_at", "2014-11-06 15:32:27.930184"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:27.949847"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:27.949847"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:27.952490"], ["email", "george"], ["updated_at", "2014-11-06 15:32:27.952490"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:27.955801"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:27.955801"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:27.960889"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:27.960889"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:27.963229"], ["email", "george"], ["updated_at", "2014-11-06 15:32:27.963229"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:27.966072"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:27.966072"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:32:27.968567"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:27.974441"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:27.974441"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:27.976816"], ["email", "george"], ["updated_at", "2014-11-06 15:32:27.976816"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:27.979694"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:27.979694"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:27.987729"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:27.987729"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:27.991591"], ["email", "george"], ["updated_at", "2014-11-06 15:32:27.991591"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:27.995260"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:27.995260"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:27.998786"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:27.998786"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:28.003681"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.003681"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:28.006056"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.006056"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.008907"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.008907"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:32:28.011409"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:28.064288"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.064288"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:28.066964"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.066964"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.070030"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.070030"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:32:28.072635"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:28.080188"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.080188"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.083203"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.083203"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:28.088810"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.088810"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.091816"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.091816"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:28.097548"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.097548"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:28.100888"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.100888"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.105389"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.105389"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:32:28.108749"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:28.114595"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.114595"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:28.117274"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.117274"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.120412"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.120412"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:32:28.125208"], ["updated_at", "2014-11-06 15:32:28.125772"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:28.131123"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.131123"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:28.133462"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.133462"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.136261"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.136261"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.139092"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.139092"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:28.144345"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.144345"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:28.146723"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.146723"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.150063"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.150063"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:28.158312"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.158312"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:28.160750"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.160750"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.163609"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.163609"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:28.168724"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.168724"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:28.171167"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.171167"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.174055"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.174055"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:32:28.176713"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:32:28.185741"], ["email", "jerry"], ["updated_at", "2014-11-06 15:32:28.185741"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:32:28.188090"], ["email", "george"], ["updated_at", "2014-11-06 15:32:28.188090"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:32:28.190947"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:32:28.190947"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:32:28.194182"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.2ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.265526"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.265526"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.331377"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.331377"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.353702"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.353702"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.358733"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.358733"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.395801"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.395801"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.399127"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (3.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.445475"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.445475"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.449473"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.449473"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.454255"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.454255"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.458177"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.471076"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.471076"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.474499"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.474499"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.479781"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.479781"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 15:34:49.491709"], ["updated_at", "2014-11-06 15:34:49.492529"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (3.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.500406"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.500406"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.544367"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.544367"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.549509"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.549509"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (4.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.560069"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.560069"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.564687"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.564687"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.571780"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.571780"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.575859"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.582271"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.582271"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.584716"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.584716"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.588945"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.588945"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.593317"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.593317"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.600414"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.600414"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.602895"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.602895"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.607489"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.607489"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:34:49.612742"], ["updated_at", "2014-11-06 15:34:49.613329"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.620631"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.620631"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.624186"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.624186"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.627364"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.627364"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (3.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.635283"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.635283"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.638517"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.638517"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.642304"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.642304"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.646876"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.646876"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (3.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.653937"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.653937"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.657427"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.657427"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.660637"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.660637"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (4.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.673899"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.673899"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.676717"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.676717"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.681609"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.681609"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.686663"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.692240"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.692240"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.695719"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.695719"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.700271"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.700271"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.704159"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:34:49.715099"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.715099"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.718817"], ["email", "george"], ["updated_at", "2014-11-06 15:34:49.718817"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.723793"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.723793"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:34:49.727195"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (3.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.736903"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.736903"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.740079"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.740079"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:34:49.747363"], ["email", "jerry"], ["updated_at", "2014-11-06 15:34:49.747363"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:34:49.751595"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:34:49.751595"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.531626"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.531626"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.571294"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.571294"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.605904"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.605904"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.609051"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.630763"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.630763"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.633297"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.633297"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.636545"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.636545"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.639325"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.663540"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.663540"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.666619"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.666619"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.669644"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.669644"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.672912"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.672912"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.677774"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.677774"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.680103"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.680103"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.683231"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.683231"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.729223"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.729223"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.731867"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.731867"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.734956"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.734956"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.737569"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.744218"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.744218"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.746604"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.746604"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.749458"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.749458"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 15:36:23.754088"], ["updated_at", "2014-11-06 15:36:23.754784"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.760301"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.760301"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.762655"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.762655"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.766556"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.766556"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.772334"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.772334"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.775289"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.775289"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.780643"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.780643"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.784291"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.784291"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.791333"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.791333"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.794190"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.794190"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.797259"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.797259"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.800118"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.800118"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.805001"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.805001"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.808346"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.808346"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.811523"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.811523"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.814038"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.822632"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.822632"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.824942"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.824942"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.827761"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.827761"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.835420"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.835420"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.837716"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.837716"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.840487"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.840487"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.842911"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.848212"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.848212"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.850672"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.850672"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.853562"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.853562"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.858818"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.858818"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.861133"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.861133"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.863956"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.863956"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:36:23.869715"], ["updated_at", "2014-11-06 15:36:23.870430"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:36:23.876338"], ["email", "jerry"], ["updated_at", "2014-11-06 15:36:23.876338"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:36:23.879028"], ["email", "george"], ["updated_at", "2014-11-06 15:36:23.879028"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:36:23.882207"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:36:23.882207"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:36:23.884775"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.654752"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.654752"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.723411"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.723411"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (30.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.759312"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.759312"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.763139"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.763139"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.770930"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.770930"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:20.773629"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.773629"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.777465"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.777465"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:41:20.780338"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.812990"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.812990"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:20.815572"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.815572"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.818610"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.818610"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:41:20.821192"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:20.834335"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.834335"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.837214"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.837214"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.840323"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.840323"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:41:20.843246"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.849458"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.849458"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:20.852101"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.852101"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.854996"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.854996"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:20.870895"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.870895"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.873440"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.873440"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.876478"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.876478"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.913349"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.913349"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:20.915985"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.915985"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.919089"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.919089"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:41:20.924156"], ["updated_at", "2014-11-06 15:41:20.924857"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:20.930650"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.930650"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.933054"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.933054"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.935945"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.935945"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.938821"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.938821"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:20.945420"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.945420"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.948285"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.948285"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.951488"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.951488"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:41:20.954540"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.961632"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.961632"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:20.964797"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.964797"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.968944"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.968944"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:20.976957"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.976957"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.979334"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.979334"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:20.982206"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:20.982206"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:41:20.984699"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:20.994031"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:20.994031"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:20.997500"], ["email", "george"], ["updated_at", "2014-11-06 15:41:20.997500"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:21.001398"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:21.001398"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 15:41:21.006762"], ["updated_at", "2014-11-06 15:41:21.007382"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:21.012886"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:21.012886"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:21.015340"], ["email", "george"], ["updated_at", "2014-11-06 15:41:21.015340"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:21.018211"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:21.018211"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:21.023055"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:21.023055"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:21.025449"], ["email", "george"], ["updated_at", "2014-11-06 15:41:21.025449"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:21.028351"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:21.028351"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:41:21.030873"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:41:21.036425"], ["email", "jerry"], ["updated_at", "2014-11-06 15:41:21.036425"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:41:21.038820"], ["email", "george"], ["updated_at", "2014-11-06 15:41:21.038820"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:21.041796"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:21.041796"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:41:21.044800"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:41:21.044800"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.128615"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.128615"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.195489"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.195489"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.202368"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.202368"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.205402"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.205402"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.212027"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.212027"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.214358"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.214358"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.217564"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.217564"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.223378"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.223378"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.225753"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.225753"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.228707"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.228707"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.249691"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.249691"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.252199"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.252199"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.255173"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.255173"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.257995"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.274052"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.274052"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.276535"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.276535"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.279458"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.279458"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.281943"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.288052"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.288052"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.290373"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.290373"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.293241"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.293241"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:43:14.297806"], ["updated_at", "2014-11-06 15:43:14.298860"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.304609"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.304609"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.306981"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.306981"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.309836"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.309836"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.312721"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.312721"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.318839"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.318839"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.321193"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.321193"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.324842"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.324842"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.327753"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.382530"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.382530"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.385632"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.385632"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.389129"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.389129"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.392932"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.392932"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.397977"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.397977"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.400321"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.400321"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.403181"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.403181"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.410689"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.410689"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.413030"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.413030"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.416349"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.416349"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.419121"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.424858"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.424858"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.427208"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.427208"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.430064"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.430064"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.435896"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.435896"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.439045"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.439045"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.443181"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.443181"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.446690"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.455419"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.455419"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.457748"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.457748"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.461251"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.461251"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:43:14.467147"], ["updated_at", "2014-11-06 15:43:14.467739"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:43:14.472843"], ["email", "jerry"], ["updated_at", "2014-11-06 15:43:14.472843"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:43:14.475158"], ["email", "george"], ["updated_at", "2014-11-06 15:43:14.475158"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:43:14.477944"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:43:14.477944"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:43:14.480401"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.2ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.260275"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.260275"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.281707"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.281707"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.399062"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.399062"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.3ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (6.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.444802"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.444802"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.451051"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.451051"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.458197"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.458197"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.465083"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.3ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (3.3ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.497072"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.497072"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.502748"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.502748"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.510590"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.510590"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.516590"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (3.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.528290"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.528290"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.534505"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.534505"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.542378"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.542378"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.548966"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.3ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (3.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.594236"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.594236"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.599859"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.599859"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.607623"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.607623"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.614478"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.614478"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.625348"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.625348"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.631134"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.631134"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.638669"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.638669"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.3ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (54.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 15:46:12.705348"], ["updated_at", "2014-11-06 15:46:12.707236"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (3.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.719388"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.719388"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.725231"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.725231"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.732971"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.732971"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.744691"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.744691"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.749979"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.749979"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.758272"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.758272"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.765916"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (3.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.783042"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.783042"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.788318"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.788318"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.795740"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.795740"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.802404"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.802404"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.813300"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.813300"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.819086"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.819086"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.828038"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.828038"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (3.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.838890"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.838890"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.844174"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.844174"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.851751"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.851751"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.4ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:46:12.862296"], ["updated_at", "2014-11-06 15:46:12.863553"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (3.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.875074"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.875074"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.881200"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.881200"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.888792"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.888792"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.894553"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (3.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.905751"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.905751"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.911534"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.911534"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.919115"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.919115"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:46:12.925311"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (3.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:46:12.937198"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.937198"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.942424"], ["email", "george"], ["updated_at", "2014-11-06 15:46:12.942424"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.950001"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.950001"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.3ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (3.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.968356"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.968356"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.975957"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.975957"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (3.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:46:12.989210"], ["email", "jerry"], ["updated_at", "2014-11-06 15:46:12.989210"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:46:12.996247"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:46:12.996247"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (3.2ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.2ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.126978"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.126978"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.148876"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.148876"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.266543"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.266543"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (6.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.280668"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.280668"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.286864"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.286864"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.293860"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.293860"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.300659"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.300659"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.311407"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.311407"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.317100"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.317100"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.325162"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.325162"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.331280"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.3ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (3.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.369732"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.369732"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.375249"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.375249"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.383319"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.383319"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.3ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:48:09.413533"], ["updated_at", "2014-11-06 15:48:09.415344"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (3.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.427797"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.427797"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.433223"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.433223"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.441022"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.441022"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.446987"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (3.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.458312"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.458312"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.464284"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.464284"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.473678"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.473678"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.481424"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.3ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (4.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.579923"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.579923"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.586408"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.586408"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.594032"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.594032"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.3ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.613076"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.613076"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.621864"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.621864"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.633388"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.633388"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.641105"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.641105"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.655777"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.655777"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.661800"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.661800"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.669883"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.669883"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.3ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 15:48:09.680173"], ["updated_at", "2014-11-06 15:48:09.681468"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (3.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.693551"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.693551"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.698813"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.698813"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.706431"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.706431"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.712335"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (3.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.729994"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.729994"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.736373"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.736373"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.743869"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.743869"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.4ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (3.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.759208"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.759208"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.764715"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.764715"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.773522"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.773522"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.779513"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (3.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.793985"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.793985"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.799853"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.799853"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.806569"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.806569"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:48:09.813282"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (3.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.823660"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.823660"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.829453"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.829453"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.838198"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.838198"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (3.3ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:48:09.851653"], ["email", "jerry"], ["updated_at", "2014-11-06 15:48:09.851653"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:48:09.856944"], ["email", "george"], ["updated_at", "2014-11-06 15:48:09.856944"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.864747"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.864747"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:48:09.871844"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:48:09.871844"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (3.3ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.053475"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.053475"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.121638"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.121638"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (5.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.131818"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.131818"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.134877"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.134877"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.141922"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.141922"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.144268"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.144268"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.147541"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.147541"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.168318"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.168318"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.170776"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.170776"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.173816"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.173816"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.179155"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.179155"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.182675"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.182675"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.185629"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.185629"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.188326"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.205217"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.205217"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.208271"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.208271"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.211518"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.211518"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.215805"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.215805"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.221394"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.221394"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.223725"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.223725"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.226611"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.226611"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 15:50:26.231442"], ["updated_at", "2014-11-06 15:50:26.232172"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.237486"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.237486"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.240303"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.240303"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.243608"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.243608"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.246975"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.252598"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.252598"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.254943"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.254943"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.257783"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.257783"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.260255"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.313882"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.313882"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.316456"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.316456"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.319450"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.319450"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.323007"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.323007"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.328585"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.328585"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.330939"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.330939"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.333786"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.333786"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.341189"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.341189"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.343511"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.343511"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.346435"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.346435"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.349692"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.358308"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.358308"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.360623"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.360623"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.364023"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.364023"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.366589"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.372183"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.372183"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.374531"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.374531"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.377405"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.377405"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 15:50:26.381979"], ["updated_at", "2014-11-06 15:50:26.382567"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.387784"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.387784"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.390093"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.390093"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.393358"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.393358"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:50:26.398924"], ["email", "jerry"], ["updated_at", "2014-11-06 15:50:26.398924"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:50:26.401240"], ["email", "george"], ["updated_at", "2014-11-06 15:50:26.401240"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:50:26.404066"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:50:26.404066"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:50:26.406556"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.258757"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.258757"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.268907"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.268907"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.335130"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.335130"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:52:22.352172"], ["updated_at", "2014-11-06 15:52:22.353347"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.368403"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.368403"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.370921"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.370921"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.373883"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.373883"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.376877"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.376877"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.382165"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.382165"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.384534"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.384534"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.387426"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.387426"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.394849"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.394849"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.397188"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.397188"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.400018"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.400018"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.403061"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.409401"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.409401"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.411757"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.411757"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.414618"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.414618"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.419883"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.419883"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.422258"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.422258"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.425108"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.425108"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.427578"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.480076"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.480076"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.482765"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.482765"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.485837"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.485837"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.488601"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.495523"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.495523"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.497864"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.497864"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.500719"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.500719"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.503388"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.511538"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.511538"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.514294"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.514294"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.517579"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.517579"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.522643"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.522643"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.525457"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.525457"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.528278"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.528278"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.531108"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.531108"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.537340"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.537340"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.539824"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.539824"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.542772"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.542772"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:52:22.547613"], ["updated_at", "2014-11-06 15:52:22.548414"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.554607"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.554607"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.557822"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.557822"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.561368"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.561368"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.564420"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.569782"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.569782"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.572651"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.572651"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.575941"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.575941"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:22.583770"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.583770"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.586239"], ["email", "george"], ["updated_at", "2014-11-06 15:52:22.586239"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.589211"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.589211"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:22.591782"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.599025"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.599025"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.602069"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.602069"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:22.608064"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:22.608064"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:22.611240"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:22.611240"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.140039"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.140039"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.207749"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.207749"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.214717"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.214717"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.217896"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.217896"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.223685"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.223685"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.225999"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.225999"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.229228"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.229228"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:52:44.247516"], ["updated_at", "2014-11-06 15:52:44.248496"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.264839"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.264839"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.267330"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.267330"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.270331"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.270331"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.273021"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.294758"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.294758"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.297263"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.297263"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.300884"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.300884"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.304287"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.304287"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.309733"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.309733"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.312080"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.312080"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.314925"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.314925"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.317493"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.323649"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.323649"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.326011"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.326011"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.361431"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.361431"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.364369"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.370170"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.370170"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.372737"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.372737"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.375684"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.375684"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.383233"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.383233"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.385628"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.385628"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.388509"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.388509"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.395021"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.395021"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.397361"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.397361"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.400192"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.400192"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.402680"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.412029"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.412029"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.414330"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.414330"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.417127"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.417127"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.420555"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.420555"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.426286"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.426286"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.428610"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.428610"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.431423"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.431423"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.436485"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.436485"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.438890"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.438890"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.441872"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.441872"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.449588"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.449588"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.451924"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.451924"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.455545"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.455545"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.458210"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.463722"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.463722"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.466009"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.466009"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.468803"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.468803"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:52:44.473268"], ["updated_at", "2014-11-06 15:52:44.473899"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:52:44.479169"], ["email", "jerry"], ["updated_at", "2014-11-06 15:52:44.479169"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:52:44.481472"], ["email", "george"], ["updated_at", "2014-11-06 15:52:44.481472"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:52:44.484835"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:52:44.484835"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:52:44.488425"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.530279"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.530279"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.599474"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.599474"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.606210"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.606210"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.609245"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.609245"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.615965"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.615965"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.618291"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.618291"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.621502"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.621502"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.624107"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.642831"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.642831"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.646249"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.646249"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.649297"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.649297"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.654814"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.654814"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.657239"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.657239"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.660131"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.660131"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.679264"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.679264"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.681768"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.681768"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.684694"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.684694"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.687194"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.692903"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.692903"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.695964"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.695964"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.698928"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.698928"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.701772"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.756641"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.756641"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.759339"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.759339"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.762466"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.762466"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:58:06.768100"], ["updated_at", "2014-11-06 15:58:06.768969"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.775130"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.775130"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.777834"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.777834"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.781002"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.781002"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.784319"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.784319"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.790721"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.790721"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.793567"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.793567"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.797329"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.797329"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.800552"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.805941"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.805941"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.808306"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.808306"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.811177"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.811177"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.814026"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.814026"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.820125"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.820125"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.822569"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.822569"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.825449"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.825449"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:58:06.829874"], ["updated_at", "2014-11-06 15:58:06.830460"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.836009"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.836009"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.838397"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.838397"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.841934"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.841934"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.847474"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.847474"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.849878"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.849878"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.852719"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.852719"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.855223"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.860898"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.860898"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.863293"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.863293"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.866158"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.866158"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:06.868613"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:06.877297"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:06.877297"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:06.879699"], ["email", "george"], ["updated_at", "2014-11-06 15:58:06.879699"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:06.883026"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:06.883026"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.657880"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.657880"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.667925"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.667925"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.731566"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.731566"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.734611"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.753628"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.753628"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.756221"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.756221"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.759450"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.759450"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.762081"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.787657"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.787657"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.790640"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.790640"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.794425"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.794425"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.798291"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.798291"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.803249"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.803249"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.805616"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.805616"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.808503"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.808503"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.813569"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.813569"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.815907"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.815907"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.818724"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.818724"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:58:29.830352"], ["updated_at", "2014-11-06 15:58:29.831273"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.837824"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.837824"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.840794"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.840794"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.844054"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.844054"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.851755"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.851755"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.885518"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.885518"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.888795"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.888795"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.892729"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.900625"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.900625"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.903014"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.903014"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.905944"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.905944"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.909355"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.909355"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.914280"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.914280"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.916648"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.916648"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.919490"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.919490"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.926933"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.926933"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.929304"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.929304"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.932131"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.932131"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:58:29.937348"], ["updated_at", "2014-11-06 15:58:29.937926"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.943542"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.943542"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.945867"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.945867"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.948663"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.948663"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.951110"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.956531"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.956531"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.958905"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.958905"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.961755"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.961755"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.964332"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.969822"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.969822"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.972241"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.972241"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.975113"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.975113"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.981014"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.981014"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:29.983426"], ["email", "george"], ["updated_at", "2014-11-06 15:58:29.983426"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:29.986271"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:29.986271"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:29.988852"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:29.999346"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:29.999346"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:30.002291"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:30.002291"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:30.007745"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:30.007745"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:30.010806"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:30.010806"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.146526"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.146526"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.156961"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.156961"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.218431"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.218431"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:58:54.236758"], ["updated_at", "2014-11-06 15:58:54.237684"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (40.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.291234"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.291234"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.294331"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.294331"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.297699"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.297699"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.303044"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.303044"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.305488"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.305488"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.308559"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.308559"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.311351"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.316909"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.316909"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.319243"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.319243"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.322072"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.322072"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.325577"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.325577"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.331603"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.331603"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.334710"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.334710"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.337632"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.337632"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.340636"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.362203"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.362203"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.364726"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.364726"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.368452"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.368452"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.371422"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.407594"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.407594"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.410355"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.410355"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.413442"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.413442"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.422055"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.422055"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.425012"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.425012"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.430482"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.430482"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.433731"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.433731"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.440947"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.440947"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.444100"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.444100"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.447099"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.447099"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.452742"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.452742"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.455500"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.455500"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.458455"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.458455"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.465867"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.465867"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.468434"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.468434"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.471282"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.471282"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.473719"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.479073"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.479073"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.481466"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.481466"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.484509"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.484509"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.487368"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.496047"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.496047"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.499065"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.499065"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.502125"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.502125"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:58:54.504833"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.511138"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.511138"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.513583"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.513583"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.516440"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.516440"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 15:58:54.520940"], ["updated_at", "2014-11-06 15:58:54.521515"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:58:54.527103"], ["email", "jerry"], ["updated_at", "2014-11-06 15:58:54.527103"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:58:54.529673"], ["email", "george"], ["updated_at", "2014-11-06 15:58:54.529673"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.533537"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.533537"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:58:54.537043"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:58:54.537043"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.385482"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.385482"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.453097"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.453097"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (5.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.463244"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.463244"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.466342"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.466342"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.472320"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.472320"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.474711"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.474711"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.478005"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.478005"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.500046"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.500046"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.503143"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.503143"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.506344"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.506344"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.510155"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.510155"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.516137"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.516137"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.518547"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.518547"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.521416"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.521416"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.526813"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.526813"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.529203"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.529203"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.532178"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.532178"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.536014"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.551445"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.551445"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.553942"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.553942"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.556887"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.556887"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 15:59:42.561589"], ["updated_at", "2014-11-06 15:59:42.562278"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.567881"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.567881"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.570301"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.570301"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.573194"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.573194"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.577208"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.583150"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.583150"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.586406"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.586406"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.589842"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.589842"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.592864"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.645164"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.645164"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.647776"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.647776"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.650850"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.650850"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.653667"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.659276"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.659276"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.661650"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.661650"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.664527"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.664527"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.672092"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.672092"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.674447"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.674447"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.677325"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.677325"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.680840"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.686977"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.686977"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.689374"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.689374"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.692259"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.692259"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 15:59:42.694760"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.702914"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.702914"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.705264"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.705264"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.708114"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.708114"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 15:59:42.712727"], ["updated_at", "2014-11-06 15:59:42.713490"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.719878"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.719878"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.723344"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.723344"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.726722"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.726722"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.730188"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.730188"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 15:59:42.735813"], ["email", "jerry"], ["updated_at", "2014-11-06 15:59:42.735813"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 15:59:42.739281"], ["email", "george"], ["updated_at", "2014-11-06 15:59:42.739281"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 15:59:42.743567"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 15:59:42.743567"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.153849"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.153849"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.222821"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.222821"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (5.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.232814"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.232814"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.235932"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.235932"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.242685"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.242685"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.245004"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.245004"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.248213"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.248213"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.270646"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.270646"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.273156"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.273156"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.276147"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.276147"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.281943"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.281943"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.284301"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.284301"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.287119"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.287119"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:04:00.291544"], ["updated_at", "2014-11-06 16:04:00.292316"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.308850"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.308850"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.311895"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.311895"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.315062"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.315062"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.317855"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.324794"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.324794"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.327167"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.327167"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.330054"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.330054"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.332928"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.332928"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.338557"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.338557"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.340891"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.340891"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.344269"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.344269"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.346928"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.403660"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.403660"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.406300"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.406300"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.409364"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.409364"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.412293"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.418195"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.418195"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.420555"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.420555"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.423435"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.423435"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.428348"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.428348"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.430692"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.430692"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.433510"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.433510"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.435987"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.446102"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.446102"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.448466"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.448466"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.451289"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.451289"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.458819"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.458819"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.461174"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.461174"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.463969"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.463969"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:04:00.468278"], ["updated_at", "2014-11-06 16:04:00.468873"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.474117"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.474117"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.476467"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.476467"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.479467"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.479467"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.482459"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.488057"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.488057"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.490368"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.490368"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.493325"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.493325"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.496812"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.496812"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:00.502284"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:00.502284"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:00.504628"], ["email", "george"], ["updated_at", "2014-11-06 16:04:00.504628"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:00.507509"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:00.507509"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:00.510006"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:49.894218"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:49.894218"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:49.963700"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:49.963700"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (5.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:49.973915"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:49.973915"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:49.976987"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:49.976987"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:49.984225"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:49.984225"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:49.986589"], ["email", "george"], ["updated_at", "2014-11-06 16:04:49.986589"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:49.990283"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:49.990283"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:49.995495"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:49.995495"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:49.997861"], ["email", "george"], ["updated_at", "2014-11-06 16:04:49.997861"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.000747"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.000747"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.022945"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.022945"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.025436"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.025436"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.028440"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.028440"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.030965"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.061030"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.061030"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.063612"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.063612"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.066704"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.066704"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.069383"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.076842"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.076842"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.079778"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.079778"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.082649"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.082649"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:04:50.119423"], ["updated_at", "2014-11-06 16:04:50.120173"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.125959"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.125959"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.128492"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.128492"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.131460"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.131460"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.134016"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.140179"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.140179"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.142569"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.142569"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.145467"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.145467"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.148348"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.148348"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.154934"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.154934"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.157275"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.157275"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.160667"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.160667"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.163648"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.171642"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.171642"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.174027"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.174027"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.177446"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.177446"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.186197"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.186197"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.188542"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.188542"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.191356"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.191356"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.193852"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.200200"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.200200"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.204628"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.204628"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.208571"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.208571"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:04:50.212285"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.218036"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.218036"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.220425"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.220425"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.223252"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.223252"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:04:50.227840"], ["updated_at", "2014-11-06 16:04:50.228398"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.233729"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.233729"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.236051"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.236051"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.238835"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.238835"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:04:50.243891"], ["email", "jerry"], ["updated_at", "2014-11-06 16:04:50.243891"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:04:50.246229"], ["email", "george"], ["updated_at", "2014-11-06 16:04:50.246229"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.249060"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.249060"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:04:50.252257"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:04:50.252257"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:11.984177"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:11.984177"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.021173"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.021173"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.055345"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.055345"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:08:12.072048"], ["updated_at", "2014-11-06 16:08:12.072867"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.092739"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.092739"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.095243"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.095243"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.098513"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.098513"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.101275"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.123283"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.123283"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.125889"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.125889"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.129564"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.129564"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.138204"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.138204"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.140593"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.140593"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.143486"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.143486"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.146129"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.152168"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.152168"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.154522"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.154522"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.157395"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.157395"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.160266"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.160266"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.165674"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.165674"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.168047"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.168047"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.202130"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.202130"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.207813"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.207813"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.210440"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.210440"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.213517"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.213517"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.216430"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.223055"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.223055"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.226075"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.226075"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.231511"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.231511"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.235514"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.235514"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.245325"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.245325"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.248288"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.248288"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.252377"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.252377"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.255561"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.255561"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.260572"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.260572"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.262956"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.262956"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.265819"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.265819"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.270964"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.270964"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.273306"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.273306"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.276186"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.276186"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.279917"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.285320"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.285320"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.287704"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.287704"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.290562"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.290562"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.298440"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.298440"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.300934"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.300934"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.303811"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.303811"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:08:12.308672"], ["updated_at", "2014-11-06 16:08:12.309427"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.315404"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.315404"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.317789"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.317789"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.321346"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.321346"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.323989"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:08:12.332262"], ["email", "jerry"], ["updated_at", "2014-11-06 16:08:12.332262"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:08:12.335353"], ["email", "george"], ["updated_at", "2014-11-06 16:08:12.335353"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:08:12.338265"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:08:12.338265"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:08:12.341385"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.536253"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.536253"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.544950"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.544950"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.607376"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.607376"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (5.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.616606"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.616606"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.619099"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.619099"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.622390"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.622390"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.625139"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.642942"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.642942"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.645454"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.645454"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.648445"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.648445"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.666969"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.666969"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.670436"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.670436"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.674389"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.674389"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.678072"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.683375"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.683375"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.685772"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.685772"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.688653"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.688653"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.691538"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.691538"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.696846"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.696846"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.699209"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.699209"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.702474"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.702474"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:11:15.707197"], ["updated_at", "2014-11-06 16:11:15.707899"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.713119"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.713119"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.715496"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.715496"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.718813"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.718813"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.721602"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.774152"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.774152"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.777455"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.777455"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.782853"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.782853"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.785849"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.785849"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.792000"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.792000"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.794418"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.794418"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.797312"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.797312"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.799891"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.805556"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.805556"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.808286"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.808286"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.811270"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.811270"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.815229"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.824392"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.824392"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.826835"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.826835"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.829744"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.829744"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.832620"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.832620"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.837949"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.837949"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.840265"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.840265"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.843059"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.843059"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.848204"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.848204"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.850648"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.850648"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.853509"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.853509"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:11:15.855951"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.861433"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.861433"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.863765"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.863765"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.866622"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.866622"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:11:15.875143"], ["email", "jerry"], ["updated_at", "2014-11-06 16:11:15.875143"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:11:15.877471"], ["email", "george"], ["updated_at", "2014-11-06 16:11:15.877471"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:11:15.880286"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:11:15.880286"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:11:15.884871"], ["updated_at", "2014-11-06 16:11:15.885480"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:20.878678"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:20.878678"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:20.918804"], ["email", "george"], ["updated_at", "2014-11-06 16:12:20.918804"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:20.953497"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:20.953497"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:12:20.956645"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:20.978018"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:20.978018"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:20.980561"], ["email", "george"], ["updated_at", "2014-11-06 16:12:20.980561"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:20.983880"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:20.983880"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:20.988868"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:20.988868"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:20.991219"], ["email", "george"], ["updated_at", "2014-11-06 16:12:20.991219"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:20.994060"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:20.994060"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:12:21.007358"], ["updated_at", "2014-11-06 16:12:21.008181"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:21.014894"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.014894"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.017405"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.017405"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.020311"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.020311"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:21.023121"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.028481"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.028481"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:21.031354"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.031354"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.034507"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.034507"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.037626"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.037626"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.042714"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.042714"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:21.045108"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.045108"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.048019"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.048019"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:21.050888"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.102822"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.102822"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:21.107209"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.107209"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.112062"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.112062"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (139.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:21.258131"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.258131"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.261076"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.261076"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.264914"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.264914"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (85.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.356476"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.356476"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:21.360213"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.360213"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.364771"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.364771"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:21.368456"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.376705"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.376705"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:21.379082"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.379082"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.381884"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.381884"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:21.384317"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:21.390381"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.390381"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.392920"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.392920"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.395847"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.395847"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:12:21.401954"], ["updated_at", "2014-11-06 16:12:21.402593"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.408133"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.408133"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:21.410673"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.410673"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.413581"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.413581"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:21.418707"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.418707"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.421088"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.421088"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.423939"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.423939"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:12:21.426428"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.433578"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.433578"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:21.436264"], ["email", "george"], ["updated_at", "2014-11-06 16:12:21.436264"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.439503"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.439503"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.443291"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.443291"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.449693"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.449693"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.452602"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.452602"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:21.457871"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:21.457871"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:21.460839"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:21.460839"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.5ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:49.703120"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.703120"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:49.744926"], ["email", "george"], ["updated_at", "2014-11-06 16:12:49.744926"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:49.781284"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.781284"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:49.784514"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (7.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:49.810464"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.810464"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:49.813122"], ["email", "george"], ["updated_at", "2014-11-06 16:12:49.813122"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:49.816685"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.816685"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:12:49.836387"], ["updated_at", "2014-11-06 16:12:49.837236"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (4.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:49.845565"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.845565"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:49.849234"], ["email", "george"], ["updated_at", "2014-11-06 16:12:49.849234"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:49.853275"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.853275"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:49.862321"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.862321"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:49.864817"], ["email", "george"], ["updated_at", "2014-11-06 16:12:49.864817"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:49.867921"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.867921"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:49.870585"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:49.893973"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.893973"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:49.897161"], ["email", "george"], ["updated_at", "2014-11-06 16:12:49.897161"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:49.900265"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.900265"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:49.903184"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.903184"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:49.908443"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.908443"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:49.910783"], ["email", "george"], ["updated_at", "2014-11-06 16:12:49.910783"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:49.947138"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.947138"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:49.952500"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.952500"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:49.955062"], ["email", "george"], ["updated_at", "2014-11-06 16:12:49.955062"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:49.958434"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.958434"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:12:49.961034"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:49.967588"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.967588"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:49.970624"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.970624"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:49.975764"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.975764"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:49.978696"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.978696"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:49.985195"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:49.985195"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:49.988157"], ["email", "george"], ["updated_at", "2014-11-06 16:12:49.988157"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:49.991153"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:49.991153"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:12:49.994312"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:50.000264"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:50.000264"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:50.002597"], ["email", "george"], ["updated_at", "2014-11-06 16:12:50.002597"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:50.005400"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:50.005400"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:50.007834"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:50.015617"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:50.015617"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:50.017930"], ["email", "george"], ["updated_at", "2014-11-06 16:12:50.017930"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:50.020721"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:50.020721"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:50.028094"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:50.028094"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:50.030417"], ["email", "george"], ["updated_at", "2014-11-06 16:12:50.030417"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:50.033212"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:50.033212"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:12:50.037033"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:50.042503"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:50.042503"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:50.044910"], ["email", "george"], ["updated_at", "2014-11-06 16:12:50.044910"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:50.048631"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:50.048631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:50.051770"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:50.051770"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:50.057358"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:50.057358"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:50.060142"], ["email", "george"], ["updated_at", "2014-11-06 16:12:50.060142"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:50.063391"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:50.063391"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:12:50.068679"], ["email", "jerry"], ["updated_at", "2014-11-06 16:12:50.068679"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:12:50.071086"], ["email", "george"], ["updated_at", "2014-11-06 16:12:50.071086"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:12:50.074008"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:12:50.074008"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:12:50.079655"], ["updated_at", "2014-11-06 16:12:50.080401"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:51.700100"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.700100"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:51.711194"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.711194"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:51.774782"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.774782"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (11.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:51.806488"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.806488"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:51.809538"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.809538"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:51.812960"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.812960"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:14:51.815760"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:51.832612"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.832612"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:51.835124"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.835124"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:51.838096"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.838096"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:51.842140"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.842140"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:51.847101"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.847101"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:51.849480"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.849480"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:51.852309"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.852309"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:14:51.854822"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:51.875959"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.875959"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:51.878483"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.878483"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:51.881913"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.881913"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:51.887225"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.887225"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:51.889594"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.889594"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:51.892811"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.892811"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:14:51.896223"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:51.901826"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.901826"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:51.936063"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.936063"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:51.939760"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.939760"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:14:51.945936"], ["updated_at", "2014-11-06 16:14:51.946752"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:51.954420"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.954420"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:51.957141"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.957141"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:51.960183"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.960183"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:51.967809"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.967809"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:51.970151"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.970151"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:51.972971"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.972971"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:14:51.977286"], ["updated_at", "2014-11-06 16:14:51.977882"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:51.983173"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.983173"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:51.985508"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.985508"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:51.989066"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:51.989066"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:14:51.991674"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:51.997359"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:51.997359"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:51.999792"], ["email", "george"], ["updated_at", "2014-11-06 16:14:51.999792"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:52.002598"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:52.002598"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:52.007775"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:52.007775"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:52.010131"], ["email", "george"], ["updated_at", "2014-11-06 16:14:52.010131"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:52.012967"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:52.012967"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:14:52.015434"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:52.021306"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:52.021306"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:52.023797"], ["email", "george"], ["updated_at", "2014-11-06 16:14:52.023797"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:52.026675"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:52.026675"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:52.029553"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:52.029553"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:52.036160"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:52.036160"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:14:52.038510"], ["email", "george"], ["updated_at", "2014-11-06 16:14:52.038510"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:52.042059"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:52.042059"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:14:52.044942"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:52.054521"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:52.054521"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:52.057419"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:52.057419"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:14:52.062572"], ["email", "jerry"], ["updated_at", "2014-11-06 16:14:52.062572"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:14:52.065641"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:14:52.065641"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:07.926839"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:07.926839"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:07.937051"], ["email", "george"], ["updated_at", "2014-11-06 16:16:07.937051"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.004419"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.004419"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.007557"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.028818"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.028818"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.031376"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.031376"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.034850"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.034850"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:16:08.049262"], ["updated_at", "2014-11-06 16:16:08.050223"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.056537"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.056537"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.059055"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.059055"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.062511"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.062511"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.065706"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.089833"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.089833"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.092451"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.092451"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.095480"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.095480"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.103450"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.103450"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.105845"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.105845"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.108760"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.108760"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.111323"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.116899"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.116899"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.119297"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.119297"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.122207"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.122207"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.158168"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.158168"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.160743"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.160743"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.163875"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.163875"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.167718"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.167718"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.174609"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.174609"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.177636"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.177636"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.182952"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.182952"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.186056"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.186056"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.193132"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.193132"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.196162"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.196162"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.199396"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.199396"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.201950"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.209988"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.209988"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.212389"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.212389"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.215283"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.215283"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:16:08.220018"], ["updated_at", "2014-11-06 16:16:08.220805"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.227460"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.227460"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.230173"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.230173"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.233306"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.233306"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.236127"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.241393"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.241393"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.243894"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.243894"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.247319"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.247319"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:16:08.249865"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.255337"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.255337"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.257682"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.257682"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.260620"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.260620"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.264738"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.264738"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.269741"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.269741"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.272109"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.272109"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.274991"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.274991"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:16:08.282655"], ["email", "jerry"], ["updated_at", "2014-11-06 16:16:08.282655"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:16:08.285060"], ["email", "george"], ["updated_at", "2014-11-06 16:16:08.285060"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:16:08.287999"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:16:08.287999"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.501844"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.501844"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.512045"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.512045"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.576595"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.576595"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (5.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.585660"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.585660"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.588068"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.588068"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.591128"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.591128"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.594078"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.626949"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.626949"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.629489"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.629489"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.632498"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.632498"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.635578"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.635578"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.640995"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.640995"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.643503"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.643503"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.646375"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.646375"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.648857"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.661700"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.661700"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.664544"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.664544"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.667836"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.667836"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:18:03.679481"], ["updated_at", "2014-11-06 16:18:03.680314"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.686668"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.686668"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.689094"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.689094"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.691987"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.691987"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.732374"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.732374"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.735056"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.735056"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.738176"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.738176"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.741415"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.747587"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.747587"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.750013"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.750013"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.752894"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.752894"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.756128"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.756128"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.761519"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.761519"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.763956"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.763956"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.767323"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.767323"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.770211"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.776544"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.776544"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.778976"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.778976"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.781865"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.781865"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.784377"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.790193"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.790193"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.792529"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.792529"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.795316"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.795316"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:18:03.797743"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.805784"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.805784"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.808106"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.808106"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.811480"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.811480"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:18:03.816344"], ["updated_at", "2014-11-06 16:18:03.816922"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.822422"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.822422"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.825339"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.825339"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.828193"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.828193"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:18:03.833983"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.833983"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.836833"], ["email", "george"], ["updated_at", "2014-11-06 16:18:03.836833"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.840104"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.840104"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.848609"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.848609"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.851482"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.851482"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:18:03.857224"], ["email", "jerry"], ["updated_at", "2014-11-06 16:18:03.857224"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:18:03.860223"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:18:03.860223"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:02.945021"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:02.945021"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:02.955513"], ["email", "george"], ["updated_at", "2014-11-06 16:19:02.955513"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.020381"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.020381"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.023524"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.044975"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.044975"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.047548"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.047548"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.050986"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.050986"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.053756"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.077956"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.077956"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.081004"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.081004"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.084865"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.084865"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.090453"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.090453"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.092798"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.092798"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.095725"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.095725"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.098869"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.098869"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.104284"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.104284"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.106662"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.106662"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.109510"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.109510"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.123366"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.123366"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.126406"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.126406"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.129443"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.129443"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.132219"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.138399"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.138399"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.172027"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.172027"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.176028"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.176028"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:19:03.180546"], ["updated_at", "2014-11-06 16:19:03.181221"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.189457"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.189457"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.191820"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.191820"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.194682"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.194682"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:19:03.199507"], ["updated_at", "2014-11-06 16:19:03.200094"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.205702"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.205702"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.208051"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.208051"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.210908"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.210908"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.218255"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.218255"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.220581"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.220581"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.223774"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.223774"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.226399"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.232193"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.232193"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.235187"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.235187"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.238047"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.238047"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.243123"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.243123"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.245429"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.245429"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.248421"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.248421"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.251596"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.251596"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.256693"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.256693"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.259014"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.259014"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.261878"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.261878"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.264507"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:19:03.274619"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.274619"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.277228"], ["email", "george"], ["updated_at", "2014-11-06 16:19:03.277228"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.280286"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.280286"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:19:03.283649"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.290945"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.290945"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.293812"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.293812"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:19:03.298870"], ["email", "jerry"], ["updated_at", "2014-11-06 16:19:03.298870"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:19:03.302444"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:19:03.302444"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.293298"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.293298"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.323961"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.323961"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.332604"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.332604"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.334990"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.334990"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.338776"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.338776"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.341964"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.341964"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.347205"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.347205"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.349607"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.349607"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.352518"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.352518"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.355037"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.388366"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.388366"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.390901"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.390901"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.393854"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.393854"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.398785"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.398785"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.401141"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.401141"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.403980"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.403980"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:21:25.451702"], ["updated_at", "2014-11-06 16:21:25.452650"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.460605"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.460605"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.463112"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.463112"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.466018"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.466018"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.468539"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.474097"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.474097"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.476454"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.476454"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.479300"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.479300"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.487089"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.487089"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.489437"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.489437"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.492271"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.492271"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.495343"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.502286"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.502286"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.504631"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.504631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.507471"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.507471"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.509982"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.518077"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.518077"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.520446"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.520446"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.523315"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.523315"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.530779"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.530779"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.533294"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.533294"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.537004"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.537004"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.541338"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.547016"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.547016"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.549829"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.549829"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.552772"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.552772"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.555986"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.555986"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.561162"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.561162"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.563551"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.563551"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.566411"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.566411"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:21:25.570796"], ["updated_at", "2014-11-06 16:21:25.571371"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.576850"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.576850"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.579244"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.579244"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.582758"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.582758"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:21:25.588294"], ["email", "jerry"], ["updated_at", "2014-11-06 16:21:25.588294"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:21:25.590677"], ["email", "george"], ["updated_at", "2014-11-06 16:21:25.590677"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:21:25.593515"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:21:25.593515"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:21:25.595979"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:40.896699"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:40.896699"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:40.906913"], ["email", "george"], ["updated_at", "2014-11-06 16:22:40.906913"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:40.931781"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:40.931781"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:22:40.950135"], ["updated_at", "2014-11-06 16:22:40.951062"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:40.969602"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:40.969602"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:40.972085"], ["email", "george"], ["updated_at", "2014-11-06 16:22:40.972085"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:40.975446"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:40.975446"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:40.979127"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:40.979127"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:40.984007"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:40.984007"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:40.986372"], ["email", "george"], ["updated_at", "2014-11-06 16:22:40.986372"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:40.989171"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:40.989171"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:22:40.991629"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:40.997289"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:40.997289"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:40.999644"], ["email", "george"], ["updated_at", "2014-11-06 16:22:40.999644"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.002474"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.002474"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:41.007785"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.007785"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:41.010154"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.010154"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.013121"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.013121"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:22:41.015754"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:41.068257"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.068257"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:41.071248"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.071248"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.074408"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.074408"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:41.083017"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.083017"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:41.085376"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.085376"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.088227"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.088227"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:22:41.090712"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:41.096424"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.096424"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:41.098833"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.098833"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.101705"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.101705"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:22:41.104550"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:41.112571"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.112571"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:41.115149"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.115149"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.118114"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.118114"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.122653"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.122653"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:41.127581"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.127581"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:41.129945"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.129945"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.132751"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.132751"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:22:41.135204"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:41.140641"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.140641"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:41.142987"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.142987"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.145819"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.145819"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:22:41.151019"], ["updated_at", "2014-11-06 16:22:41.151854"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:41.157680"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.157680"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:41.160080"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.160080"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.162915"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.162915"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:22:41.170151"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.170151"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:41.172518"], ["email", "george"], ["updated_at", "2014-11-06 16:22:41.172518"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.175334"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.175334"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:41.182036"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.182036"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.184953"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.184953"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:22:41.190410"], ["email", "jerry"], ["updated_at", "2014-11-06 16:22:41.190410"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:22:41.193689"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:22:41.193689"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.639761"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.639761"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.671039"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.671039"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (5.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.682769"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.682769"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.685769"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.685769"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.689505"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.689505"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-06 16:23:30.706912"], ["updated_at", "2014-11-06 16:23:30.707735"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.724689"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.724689"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.727165"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.727165"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.730154"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.730154"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.735532"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.735532"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.737872"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.737872"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.740724"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.740724"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.743216"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.749141"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.749141"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.751676"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.751676"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.755123"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.755123"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.758578"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.758578"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.764958"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.764958"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.767316"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.767316"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.770212"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.770212"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.772687"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.827412"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.827412"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.830378"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.830378"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.833638"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.833638"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.836765"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.843129"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.843129"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.845611"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.845611"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.848626"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.848626"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.857556"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.857556"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.859897"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.859897"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.863366"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.863366"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.871925"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.871925"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.874291"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.874291"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.877355"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.877355"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.882800"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.882800"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.885494"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.885494"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.888658"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.888658"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.891384"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.897270"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.897270"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.899589"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.899589"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.903077"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.903077"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.906799"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.912268"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.912268"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.914638"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.914638"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.917778"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.917778"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-06 16:23:30.920478"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.929140"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.929140"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.931648"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.931648"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.935001"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.935001"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-06 16:23:30.940653"], ["updated_at", "2014-11-06 16:23:30.941358"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-06 16:23:30.947293"], ["email", "jerry"], ["updated_at", "2014-11-06 16:23:30.947293"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-06 16:23:30.949946"], ["email", "george"], ["updated_at", "2014-11-06 16:23:30.949946"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.953392"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.953392"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-06 16:23:30.957023"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-06 16:23:30.957023"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:52.917428"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:52.917428"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:52.958606"], ["email", "george"], ["updated_at", "2014-11-07 15:08:52.958606"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.000875"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.000875"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.004380"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.071766"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.071766"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.074445"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.074445"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.077486"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.077486"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.080584"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.113629"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.113629"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.116728"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.116728"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.119857"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.119857"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.125170"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.125170"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.127627"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.127627"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.130543"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.130543"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.134174"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.134174"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.139004"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.139004"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.141356"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.141356"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.144226"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.144226"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.147248"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.152890"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.152890"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.155309"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.155309"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.188782"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.188782"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-07 15:08:53.222468"], ["updated_at", "2014-11-07 15:08:53.223388"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.229955"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.229955"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.232494"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.232494"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.235479"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.235479"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.238124"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.246430"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.246430"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.248815"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.248815"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.251720"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.251720"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.254633"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.254633"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.260953"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.260953"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.263794"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.263794"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.267450"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.267450"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-07 15:08:53.272762"], ["updated_at", "2014-11-07 15:08:53.273576"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.279832"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.279832"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.282683"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.282683"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.285532"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.285532"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.287968"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.293948"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.293948"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.296303"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.296303"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.299142"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.299142"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:08:53.301578"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.307060"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.307060"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.309466"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.309466"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.312447"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.312447"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:08:53.320378"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.320378"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.322734"], ["email", "george"], ["updated_at", "2014-11-07 15:08:53.322734"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.325594"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.325594"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.331378"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.331378"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.334327"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.334327"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:08:53.339866"], ["email", "jerry"], ["updated_at", "2014-11-07 15:08:53.339866"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:08:53.342936"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:08:53.342936"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.319518"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.319518"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.329707"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.329707"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.355332"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.355332"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (5.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.364550"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.364550"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.367073"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.367073"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.370536"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.370536"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:17:47.373350"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.391733"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.391733"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.394284"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.394284"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.397279"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.397279"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-07 15:17:47.413393"], ["updated_at", "2014-11-07 15:17:47.414211"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.421535"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.421535"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.424346"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.424346"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.427445"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.427445"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:17:47.430334"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (3.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.437394"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.437394"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.441374"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.441374"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.446854"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.446854"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.453201"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.453201"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.460064"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.460064"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.462470"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.462470"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.466003"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.466003"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.479053"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.479053"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.483643"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.483643"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.488922"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.488922"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:17:47.491597"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.497738"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.497738"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.500630"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.500630"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.505671"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.505671"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:17:47.508621"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.565573"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.565573"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.568622"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.568622"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.571972"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.571972"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.577447"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.577447"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.582781"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.582781"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.585595"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.585595"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.588783"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.588783"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.596518"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.596518"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.598924"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.598924"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.602589"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.602589"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-07 15:17:47.607410"], ["updated_at", "2014-11-07 15:17:47.607989"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.613312"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.613312"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.615698"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.615698"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.618618"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.618618"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:17:47.621976"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:17:47.627211"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.627211"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.629553"], ["email", "george"], ["updated_at", "2014-11-07 15:17:47.629553"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.632427"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.632427"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.638469"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.638469"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.641427"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.641427"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:17:47.647531"], ["email", "jerry"], ["updated_at", "2014-11-07 15:17:47.647531"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:17:47.652317"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:17:47.652317"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.5ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.572212"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.572212"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.581087"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.581087"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.606580"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.606580"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:18:28.609697"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (5.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.643248"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.643248"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.645799"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.645799"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.649191"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.649191"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.654229"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.654229"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.656593"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.656593"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.659540"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.659540"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.663507"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.663507"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.668520"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.668520"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.670864"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.670864"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.673783"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.673783"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-07 15:18:28.689862"], ["updated_at", "2014-11-07 15:18:28.691595"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.728032"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.728032"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.730584"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.730584"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.733654"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.733654"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:18:28.736795"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.742104"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.742104"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.744528"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.744528"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.747459"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.747459"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.755798"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.755798"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.758298"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.758298"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.761277"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.761277"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.765750"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.765750"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.770727"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.770727"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.773515"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.773515"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.776933"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.776933"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:18:28.779636"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.786010"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.786010"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.788454"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.788454"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.791408"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.791408"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.799244"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.799244"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.801571"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.801571"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.804639"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.804639"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-07 15:18:28.809975"], ["updated_at", "2014-11-07 15:18:28.810536"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.815890"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.815890"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.818234"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.818234"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.821096"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.821096"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.826527"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.826527"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.828928"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.828928"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.831810"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.831810"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:18:28.834298"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:18:28.842549"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.842549"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.844870"], ["email", "george"], ["updated_at", "2014-11-07 15:18:28.844870"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.847707"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.847707"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:18:28.850449"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.858625"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.858625"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.861558"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.861558"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:18:28.866862"], ["email", "jerry"], ["updated_at", "2014-11-07 15:18:28.866862"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:18:28.869864"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:18:28.869864"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:34.839165"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:34.839165"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (29.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:34.954871"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:34.954871"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "messages"[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:34.995001"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:34.995001"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:34.998908"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:34.998908"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "messages" [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.007825"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.007825"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.010451"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.010451"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.014362"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.014362"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-07 15:44:35.064637"], ["updated_at", "2014-11-07 15:44:35.065650"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.083429"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.083429"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.086091"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.086091"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.089125"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.089125"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.091941"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.186048"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.186048"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.188827"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.188827"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.191973"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.191973"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.198088"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.198088"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.200647"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.200647"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.203835"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.203835"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.206554"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.212731"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.212731"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.215447"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.215447"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.218535"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.218535"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.227576"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.227576"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.230134"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.230134"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.233940"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.233940"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.237391"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.237391"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.243969"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.243969"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.248484"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.248484"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.253741"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.253741"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.258569"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.267702"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.267702"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.270364"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.270364"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.276258"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.276258"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.280958"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.291817"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.291817"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.295496"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.295496"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.301714"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.301714"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.306180"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.313030"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.313030"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.317257"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.317257"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.324649"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.324649"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:44:35.328482"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.335602"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.335602"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.339310"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.339310"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.344569"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.344569"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-07 15:44:35.350799"], ["updated_at", "2014-11-07 15:44:35.351406"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.357829"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.357829"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.361337"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.361337"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.365220"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.365220"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.371579"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.371579"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.374377"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.374377"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.378626"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.378626"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:44:35.387658"], ["email", "jerry"], ["updated_at", "2014-11-07 15:44:35.387658"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:44:35.390183"], ["email", "george"], ["updated_at", "2014-11-07 15:44:35.390183"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.394421"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.394421"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:44:35.398028"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:44:35.398028"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:13.890484"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:13.890484"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:13.901414"], ["email", "george"], ["updated_at", "2014-11-07 15:45:13.901414"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:13.925369"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:13.925369"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-07 15:45:13.943746"], ["updated_at", "2014-11-07 15:45:13.944671"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:13.960100"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:13.960100"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:13.962744"], ["email", "george"], ["updated_at", "2014-11-07 15:45:13.962744"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:13.965793"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:13.965793"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:13.973917"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:13.973917"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:13.976793"], ["email", "george"], ["updated_at", "2014-11-07 15:45:13.976793"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:13.980367"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:13.980367"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:13.985753"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:13.985753"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:13.988259"], ["email", "george"], ["updated_at", "2014-11-07 15:45:13.988259"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:13.991199"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:13.991199"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:13.993895"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:14.000131"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.000131"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:14.002632"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.002632"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.005770"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.005770"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:45:14.009150"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:14.014824"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.014824"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:14.017544"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.017544"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.020770"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.020770"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:14.023535"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:14.081837"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.081837"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:14.084601"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.084601"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.087837"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.087837"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.091376"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.091376"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:14.097596"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.097596"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.100608"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.100608"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "messages" [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:14.109682"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.109682"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.112734"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.112734"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "messages"[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:14.122446"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.122446"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:14.125882"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.125882"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.128978"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.128978"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.132411"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.132411"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:14.137910"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.137910"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:14.140416"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.140416"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.143347"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.143347"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:14.148549"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.148549"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:14.151087"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.151087"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.154097"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.154097"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:45:14.156942"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:14.163052"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.163052"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:14.165653"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.165653"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.168651"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.168651"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:14.177338"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.177338"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:14.179834"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.179834"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.182816"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.182816"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-07 15:45:14.187265"], ["updated_at", "2014-11-07 15:45:14.187841"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:14.193488"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.193488"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:14.195983"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.195983"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.199271"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.199271"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:14.201845"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:14.208114"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:14.208114"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:14.210608"], ["email", "george"], ["updated_at", "2014-11-07 15:45:14.210608"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:14.213617"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:14.213617"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:14.216110"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.647983"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.647983"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.658603"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.658603"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.682543"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.682543"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.704588"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.704588"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.707220"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.707220"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.710378"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.710378"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.715616"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.715616"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.718138"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.718138"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.721721"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.721721"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:45:39.726044"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (27.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.768879"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.768879"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.772080"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.772080"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.775557"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.775557"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-07 15:45:39.780892"], ["updated_at", "2014-11-07 15:45:39.781624"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.787273"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.787273"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.789811"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.789811"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.792888"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.792888"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:39.795391"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.850747"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.850747"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.853597"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.853597"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.856746"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.856746"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:39.860085"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.865849"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.865849"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.868374"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.868374"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.871340"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.871340"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.874185"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.874185"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.881172"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.881172"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.884130"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.884130"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "messages" [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.893799"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.893799"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.898161"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.898161"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "messages"[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.909071"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.909071"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.911781"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.911781"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.914829"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.914829"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.918288"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.918288"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.924195"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.924195"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.926693"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.926693"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.930433"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.930433"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:39.933427"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.938826"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.938826"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.941332"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.941332"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.944343"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.944343"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:45:39.947964"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.953686"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.953686"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.956224"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.956224"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.959225"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.959225"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.967476"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.967476"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.969989"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.969989"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.973399"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.973399"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-07 15:45:39.978597"], ["updated_at", "2014-11-07 15:45:39.979293"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.984834"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.984834"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.987348"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.987348"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:39.990314"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:39.990314"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:45:39.995812"], ["email", "jerry"], ["updated_at", "2014-11-07 15:45:39.995812"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:45:39.998326"], ["email", "george"], ["updated_at", "2014-11-07 15:45:39.998326"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:45:40.001248"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:45:40.001248"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:45:40.003709"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.4ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- UserModelTest: test_unread_message_count ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.316535"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.316535"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.347194"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.347194"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "messages"[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------ UserModelTest: test_unread_messages? ------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.357193"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.357193"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.360372"], ["recipient_id", 1], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.360372"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "messages" [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------- MessageModelTest: test_create_message ------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.370642"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.370642"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.373103"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.373103"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.377543"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.377543"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.380880"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.380880"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------- MessageModelTest: test_read? ---------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.386238"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.386238"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.389082"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.389082"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.393089"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.393089"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.3ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["read_at", "2014-11-07 15:50:47.410613"], ["updated_at", "2014-11-07 15:50:47.411458"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------- MessageModelTest: test_read_returns_message ------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.428114"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.428114"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.430729"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.430729"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.434697"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.434697"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (2.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_mark_deleted_recipient --------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.445814"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.445814"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.448959"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.448959"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.451982"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.451982"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.455430"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ---------------------------------------- MessageModelTest: test_mark_deleted_both ---------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.462009"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.462009"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.464676"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.464676"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.467672"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.467672"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.470960"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Exists (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------ MessageModelTest: test_mark_deleted_sender ------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.524018"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.524018"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.527130"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.527130"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.530412"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.530412"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.533563"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction --------------------------------------------- MessageModelTest: test_read_records_timestamp --------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.539238"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.539238"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.541781"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.541781"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.544790"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.544790"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------- PrivateMessagesTest: test_read? ------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.551370"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.551370"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.553969"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.553969"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.556974"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.556974"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 1 OR recipient_id = 1)) ORDER BY "messages"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "read_at" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["read_at", "2014-11-07 15:50:47.563267"], ["updated_at", "2014-11-07 15:50:47.563838"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------- PrivateMessagesTest: test_mark_deleted_both ------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.569518"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.569518"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.572375"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.572375"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.575386"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.575386"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1[0m [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.578661"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Exists (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ------------------------------------------------ PrivateMessagesTest: test_read_records_timestamp ------------------------------------------------ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.587230"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.587230"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.589737"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.589737"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.592682"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.592682"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m --------------------------------------------- PrivateMessagesTest: test_mark_deleted_sender --------------------------------------------- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.598937"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.598937"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.601803"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.601803"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.607789"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.607789"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "sender_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["sender_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.611230"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------------- PrivateMessagesTest: test_read_returns_message ---------------------------------------------- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.616594"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.616594"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.620461"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.620461"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.625685"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.625685"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE (id=1 and (sender_id = 2 OR recipient_id = 2)) ORDER BY "messages"."id" ASC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m ------------------------------------------------ PrivateMessagesTest: test_mark_deleted_recipient ------------------------------------------------ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.634870"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.634870"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.638585"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.638585"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.645495"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.645495"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "messages" SET "recipient_deleted" = ?, "updated_at" = ? WHERE "messages"."id" = 1 [["recipient_deleted", "t"], ["updated_at", "2014-11-07 15:50:47.649451"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (20.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction ---------------------------------------- PrivateMessagesTest: test_create_message ---------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (17.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-07 15:50:47.675385"], ["email", "jerry"], ["updated_at", "2014-11-07 15:50:47.675385"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (40.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 15:50:47.696031"], ["email", "george"], ["updated_at", "2014-11-07 15:50:47.696031"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (27.9ms)[0m INSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.741999"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.741999"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "recipient_id", "sender_id", "subject", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", "Frolf, Jerry! Frisbee golf!"], ["created_at", "2014-11-07 15:50:47.774196"], ["recipient_id", 1], ["sender_id", 2], ["subject", "Frolf, Jerry!"], ["updated_at", "2014-11-07 15:50:47.774196"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (154.7ms)[0m [1mrollback transaction[0m